Tweak retry logic a bit.