Fixed the game not closing.