hack in retry logic when remote connections are lost