Save files at end of class.