You'll also want to look into making sure the save data is persisted to durable disk across reboots/power loss.