Handle failed synchronization attempts

This isn't great: it simply detects that a synchronization attempt
failed, sleeps, and retries the attempt.  While this isn't good, it's
at least something...