@Override
  protected void terminated() {
    if (bufferConsumer != null) {
      bufferConsumer.interrupt();
    }
    super.terminated();
  }
Is the current thread used for executing Functions?
geode-core/src/main/java/org/apache/geode/distributed/internal/FunctionExecutionPooledExecutor.java