close the file