Add logcat connection broken detection.