jruby throws an uncatchable exception