Handle the pygame close button.