add callback to socket.write; try to avoid writing when we know socket is closed
add callback to socket.write; try to avoid writing when we know socket is closed

sidorares/node-mysql2,sidorares/node-mysql2,sidorares/node-mysql2,sidorares/node-mysql2