Window doesn't close after game ends.