Make err logging of bubbled exceptions a bit more robust.
Eliminate unnecessary cast exception for every Java class on load.