catch exceptions from Resolv