It's the same as here: https://github.com/avsm/lwt/blob/master/src/core/lwt.ml#L179
The idea is that this can be set/configured from anywhere else statically.
Another option would be to pass in the async_exception_hook as a parameter of run.