close file manually