close the buffer after Assert