Don't close Emacs without checking first.