protected boolean isStopping() {
        // The target state should never be STOPPED, but if things go wrong and it somehow is,
        // we handle that identically to a request to shut down the task
        return stopping || targetState == TargetState.STOPPED;
    }
Remove all metrics published by this task.
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/WorkerTask.java