public void stopAndAwaitConnector(String connName) {
        stopConnector(connName);
        awaitStopConnectors(Collections.singletonList(connName));
    }
Stop a connector that belongs to this worker and await its termination.

@param connName the name of the connector to be stopped.
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/Worker.java