catch all exceptions, even Throwables in H.java (so that we have a chance to log them)