public static void setExitProcedure(Procedure procedure) {
        exitProcedure = procedure;
    }
For testing only, do not call in main code.
clients/src/main/java/org/apache/kafka/common/utils/Exit.java