Clear retry interval before setting it to undefined

It seems you run `clearInterval` to stop the timer but you set it to `undefined` just before you run `clearInterval` which essentially makes the line useless.