small change to close-buffer

I didn't need to use reset! in conjunction with swap!, opted for just
reset! instead.