Throw an IOException if we fail to resolve the host when connecting