Fix crash due to race condition on game unloading
Fix potential race condition when saving/loading game while quitting