code: public static ExceptionCallback stopOnError() {
          return new ExceptionCallback() {
              @Override
              public void exception(FailedEventInvocation invocation) {
                  FailedEventInvocation.log(LOG, invocation);
                  invocation.getEvent().setHandled(true);
              }
          };
      }
docs: The callback will set the Event's {@link Event#isHandled() handled} flag
  to <code>true</code> to gracefully stop the delegation process when an
  exception occurs. Like {@link #ignore()}, the exception will be logged.
  
  @return The callback.