Fixed bug where game would not close when the window was closed and the pause was up.