Check before closing email sender