handle connection reset by peer