SERVER-11544 Make sure to fclose config file on error