Detect timeout and dns error on Windows.