Close the file