Prompts on closure to save if needed