Ensure fclose just in case code is run on non *NIX systems