Easier running of tests in Jruby
Improve handling of JRuby shutdown issue - best case is now deadlock
Fix idle source cleanup