Client's listener gets nottified when he toggles from connected to disconnected state