Improved error handling

Add check to stop processing shards if all sync workers have failed.

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