This commit adds a check to the returned error from calling retryCheck such that when the max number of attempts is reached, the health check will quit.
This commit adds a check to the returned error from calling retryCheck such that when the max number of attempts is reached, the health check will quit.