Add "retry_delay".

And re-set "last_failed" if we managed to open a connection