refactor exceptions to ConnectorException