Make sure Game.OnExiting() is called when window will close on Mac