@SuppressWarnings("unchecked")
    protected B self() {
        return (B) this;
    }
In the event of ungraceful shutdown, embedded clusters call exit or halt with non-zero
exit statuses. Exiting with a non-zero status forces a test to fail and is hard to
handle. Because graceful exit is usually not required during a test and because
depending on such an exit increases flakiness, this setting allows masking
exit and halt procedures by using a runtime exception instead. Customization of the
exit and halt procedures is possible through {@code exitProcedure} and {@code
haltProcedure} respectively.

@param mask if false, exit and halt procedures remain unchanged; true is the default.
@return the builder for this cluster
connect/runtime/src/test/java/org/apache/kafka/connect/util/clusters/EmbeddedConnectBuilder.java