public void forceClose() {
        this.forceClose = true;
        initiateClose();
    }
Closes the sender without sending out any pending messages.
clients/src/main/java/org/apache/kafka/clients/producer/internals/Sender.java