fire a warning before closing an unsaved file