As this is called only for one CR, maybe move this check out of the loop and fail early if it doesn't respond to associated_host.