code: @SuppressWarnings("checkstyle:illegalcatch")
    public void afterTaskExit() throws TaskStopHandlerFailure {
      LOG.log(Level.FINEST, "Sending TaskStop event to the registered event handlers.");
      for (final EventHandler<TaskStop> stopHandler : this.taskStopHandlers) {
        try {
          stopHandler.onNext(this.taskStop);
        } catch (final Throwable throwable) {
          throw new TaskStopHandlerFailure(stopHandler, throwable);
        }
      }
      LOG.log(Level.FINEST, "Done sending TaskStop event to the registered event handlers.");
    }
docs: Sends the TaskStop event to the handlers for it.