shut down, when window is closed

yes, there must be a cleaner way, later
don't start the timer closing the doors before starting the game