Explicitly rescue java native exceptions in jruby

This add tests and fix #854 from pry side.