register until it succeeds
remove default case in registerExportedEndpoints to allow timeout to occur
Merge pull request #1212 from control-center/feature/registerUntilSuccess

register until it succeeds