Trying to find why errors don't get emitted

When exceptions are not caught they get lost somewhere and never reach the
domain error handler.