Add config exception handling

Rudimentary exception handling for the config file parsing.