Close the file aswell.