Make the windows port save the game before closing on shutdown.  Untested fix but should work.  Closes #296.