@Override
    public void close() throws IOException {
        this.lock.lock();
        try {
            if (!this.finished) {
                Utils.closeQuietly(this.outputStream);
            }
            if (null != this.destBuf) {
                this.destBuf.recycle();
                this.destBuf = null;
            }
        } finally {
            this.lock.unlock();
        }
    }
Get file response closure to answer client.

@author boyan (boyan@alibaba-inc.com)
jraft-core/src/main/java/com/alipay/sofa/jraft/storage/snapshot/remote/CopySession.java