code: private void notifyShutdown()
      {
          if (eventHandler instanceof LifecycleAware)
          {
              try
              {
                  ((LifecycleAware) eventHandler).onShutdown();
              }
              catch (final Throwable ex)
              {
                  exceptionHandler.handleOnShutdownException(ex);
              }
          }
      }
docs: Notifies the EventHandler immediately prior to this processor shutting down