actually closing the files