There is such a “catch-all” exception handler, it’s called Lwt.async_exception_hook. It’s a reference that you can set to a different implementation that doesn’t terminate your program: Module Lwt
2 Likes