@Override
  public void setException(Throwable exception) {
    if (sender != null) {
      sender.setException(exception);
      // this.sender.lastResult(exception);
    } else {
      ((LocalResultCollector) rc).setException(exception);
      // this.lastResult(exception);
      logger.info("Unexpected exception during function execution on local node Distributed Region",
          exception);
    }
    rc.endResults();
    localLastResultReceived = true;
  }
Have to combine next two construcotr in one and make a new class which will send Results back.
geode-core/src/main/java/org/apache/geode/internal/cache/execute/DistributedRegionFunctionResultSender.java