Experimente a captura ainda imprime java
Thread.setDefaultUncaughtExceptionHandler(
(t, e) -> System.err.println("There's nothing to see here"));
Xanthous Xenomorph