add some connection handling in case there is a networking issue and the connection is lost

...es stale