protected void handlePrimaryDestroy(final GatewaySenderEventImpl gatewayEvent) {
    Executor my_executor = executor;
    synchronized (listenerObjectLock) {
      if (my_executor == null) {
        // should mean we are now primary
        return;
      }
      try {
        my_executor.execute(() -> basicHandlePrimaryDestroy(gatewayEvent.getEventId(), false));
      } catch (RejectedExecutionException exception) {
        if (!sender.getCache().getCancelCriterion().isCancelInProgress()) {
          throw exception;
        }
      }
    }
  }
Called when the primary gets rid of an event from the queue This method added to fix bug 37603
geode-core/src/main/java/org/apache/geode/internal/cache/wan/serial/SerialGatewaySenderEventProcessor.java