I'm referring to the X button on your keyboard. Were you pressing the red X button on the corner? That closes the game.