added callback on close for readableStreamBuffer.