Fixed the expection that was caused by closing the game. Also fixed the title bug.