detection of lost connections