retry in case of connection error