public void shutdown() {
        taskPollExecutor.shutdownAndAwaitTermination(
                scheduledExecutorService, shutdownGracePeriodSeconds);
        taskPollExecutor.shutdown(shutdownGracePeriodSeconds);
    }
Invoke this method within a PreDestroy block within your application to facilitate a graceful
shutdown of your worker, during process termination.
client/src/main/java/com/netflix/conductor/client/automator/TaskRunnerConfigurer.java