Don't ask the user to save the file if it is not modified
Handle error condition when saving the file