If the user attempts to close the program and there are unsaved changes, ask them if they would like to save first.