Checks if the monad returned by the thunk raised an exception, and applies
the given error handler if necessary.
This function has intentionally the
exact signature as Lwt.catch. This means the Lwt module is already a Strict_monad:
let _ =
(module Lwt: Sugar.Params.Strict_monad)