close the file after having parsed it