public void beginShutdown(boolean stopAgents) {
        if (shutdown.compareAndSet(false, true)) {
            executor.submit(new Shutdown(stopAgents));
        }
    }
Initiate shutdown, but do not wait for it to complete.
trogdor/src/main/java/org/apache/kafka/trogdor/coordinator/TaskManager.java