Disconnect on error

If the socket is erroring, stop using it and buffer