added recovery on disconnect during sync.