Fixed hitting close window didn't close the game