register until it succeeds

Why is this different from https://github.com/control-center/serviced/pull/1212/files#diff-0eea67be12f3d52d3fa42b4c2425e3baR626