If i properly understand Interface Thread.UncaughtExceptionHandler it should be invoke when RuntimeException is throw.