added disconnect notification and handling