Close window on end game