private void configureThread(final String name, boolean daemon) {
        setDaemon(daemon);
        setUncaughtExceptionHandler((t, e) -> log.error("Uncaught exception in thread '{}':", name, e));
    }
A wrapper for Thread that sets things up nicely
clients/src/main/java/org/apache/kafka/common/utils/KafkaThread.java