JRuby: add some debug logging for IllegalThreadStateException in #exited?