private static void log(InternalException exception) {
        // print to logger
        Log.severe(exception.getMessage(), exception);

        // call event
        AtomicBoolean firing = NOT_TODAY_STACK_OVERFLOW_EXCEPTION.get();
        if (firing.compareAndSet(false, true)) {
            try {
                Events.call(new HelperExceptionEvent(exception));
            } finally {
                firing.set(false);
            }
        }
    }
Central handler for exceptions that occur within user-written
Runnables and handlers running in helper.
helper/src/main/java/me/lucko/helper/internal/exception/HelperExceptions.java