packetType should always be a number
Socket.unref() is not available in Node < 0.10
forcing tcp connection reset on ECONNRESET