Buffer close() calls, and fix some straggler tests.
Merge pull request #230 from cgjones/buffer-close

Buffer close() calls, and fix some straggler tests.