Adding error handling to break process if configuration is not found