add handling for ca disconnection