Close the file
Set memory limit to -1