added a client side connection checker that forces reconnect on disconnect