now detects disconnects