Made it so the game exits when the Desktop window is closed.