Bail out with a meaningful error message in case we cannot throw a Java exception. Reviewed-by: kvn, dholmes