BZ 1152154 - wait a few times during startup to ensure the agent has been given a fair chance to register before aborting
(cherry picked from commit 6b97b5ce9c146d7fd14bcd0da50e165ccb85e9ea)