catch potential errors resolving hosts