Don't throw exception if hostname can't be resolved.