close the file when we're done