Redis reconnect logic