Added and exit on close to game window