Fixed If cancelled out of closing program it would still save the files...