@Override
  public void shutdown() {
    heartbeatExecutor.shutdownNow();
  }
This method should always be invoked before setting up heartbeats for another task running in
the same container.
llap-server/src/java/org/apache/hadoop/hive/llap/daemon/impl/LlapTaskReporter.java