Add a confirmation message before closing the "Edit before importing" window to prevent losing unsaved changes unintentionally