port 1.4 code that ties writes and closes to same thread
correct tab errors caused by emacs on non-development platform
Merge pull request #91 from basho/mv-write-patch-1.3

Pull mv-write-patch-1.3 branch into 1.3 branch for 1.3.3 release