@Override
    public void close() throws IOException {
        if (!closed) {
            try {
                // flush before closing the inner output stream
                super.close();
            } finally {
                output.close();
            }
        }
    }
Wrapper of {@link java.io.OutputStream}.
clickhouse-data/src/main/java/com/clickhouse/data/stream/WrappedOutputStream.java