propagate ocaml exceptions through perl and back into ocaml