catch errors loading the config file and exit