Experimental code to detect headset disconnect