use curlmyip.com instead checkip.dyndns.org. Rescue and warn exceptions and try 5 times to get the IP