Check the return value of fclose() in config.cpp.