presto-main/src/main/java/io/prestosql/server/HttpRemoteTaskFactory.java/HttpRemoteTaskFactory/stop
class HttpRemoteTaskFactory:    @PreDestroy
    public void stop()
    {
        coreExecutor.shutdownNow();
        updateScheduledExecutor.shutdownNow();
        errorScheduledExecutor.shutdownNow();
    }