Detect if network is down while using proxies