GUI: ask if files should be saved when exiting the program