Is it "ok" to just bail out like this?  What happens if a local db write fails, and this path is hit?  Does it do a clean-sync next time?  What are the semantics?