add BufferClose()