Prompt to save files with unsaved changes before closing