When closing files not modified by Git, do not close files that have unsaved changes.