Set disconnected state after calling socket.end() and ignore writes made after closing. Fixes bug when closing during a client slave function.
Set disconnected state after calling socket.end() and ignore writes made after closing. Fixes bug when closing during a client slave function.

bryanwayb/nodesocket-nodejs