added missing fclose() to free the handle after a test run

this prevents that the file handle leaks.