Add support for retries on failure in ProfileServiceResolver.