@Override
  public void shutdown() {
    try {
      super.shutdown();
    } finally {
      terminated();
    }
  }
Is the current thread used for executing Functions?
geode-core/src/main/java/org/apache/geode/distributed/internal/FunctionExecutionPooledExecutor.java