Fix a couple of bugs with retry query runner after testing it locally

we can probably remove this line and just skip to the return at the end of the function, and remove the returningSeq variable for clarity