close open files