@Override
    public void close() {
        close(null, null);
    }
Closes the resource in a thread-safe manner.

<p/>

After the execution has completed, calls to {@link #isClosed()} will return {@code false} and calls to
{@link #assertOpen(String)} and {@link #assertOpen(Supplier)}
will throw an {@link IllegalStateException}.
clients/src/main/java/org/apache/kafka/common/internals/IdempotentCloser.java