complete the close method of Buffer Iterator
add buffer as a logical operator