only prompt on accidental close