Detected disconnection properly