Catch exception while parsing config file