Added dialog box when trying to close the program and there are files that are not saved.
Updated