Track stream desynchronization

If we hit an IO error talking to the server, message framing has
probably been lost and we shouldn't try to keep talking.