Adding more exception handling. This time it's for problems with the config file.