listenerExceptionHandler

If machine catches exception from client code (listeners callbacks) it stores it until event processing completes, and passes it to this handler. That keeps machine in well-defined predictable state and allows to complete all required notifications. Note that generally speaking listeners should not throw.

Default implementation rethrows exception (only first one). With your own handler you can mute or just log them for example.