Exception handling for configuration file