We should probably update NetworkClient to provide error codes for disconnect reasons, so that we can log a disconnect due to a queue overflow.

We can probably merge without doing that yet, though.