This is a follow up to 4013bc4a4c which missed some backends. It adds a ctx parameter to shouldRetry and checks it.
4013bc4a4c