Coping with connection loss