public void waitForShutdown() throws InterruptedException {
        while (!executor.awaitTermination(1, TimeUnit.DAYS)) { }
    }
Wait for shutdown to complete.  May be called prior to beginShutdown.
trogdor/src/main/java/org/apache/kafka/trogdor/coordinator/TaskManager.java