Log an error and exit if the config file cannot be loaded correctly