Track connection errors

Treat connection errors as special,
in terms of halting the processing of
queued shards.

Signed-off-by: Joe Buck <jbbuck@gmail.com>