uncaughtException() should not be called from library code. Implementors of this method will only be expecting this to be called by the JVM when the exception has propagated up the entire stack and the thread is stopping. Replace these calls with logging of the exceptions to System.err (which is what the default uncaughtException implementation will do.