Safe Quit

Prevents game freezes and data corruption by ensuring singleplayer worlds finish saving before quitting.