Close the profFile

Opened file should be closed.
Merge pull request #289 from golanger/patch-1

Close the profFile