recover from connection failures