joyent/node — pull request #7680 by juliangruber (2014-05-23 15:26:58+00:00)
Title: net: throw on write after close

`socket.write()` on a closed socket will either throw or pass an error to the callback.

see https://github.com/joyent/node/pull/7623#issuecomment-43895947