Closed the buffer