exit gracefully on unhandled error and validate config file path