Confirm closing text editor if the file was modified.