More robust reconnection strategy.