Detect internet connection loss