added missing fclose statement.
Merge pull request #7 from bfontaine/fclose

Added missing fclose statement.