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