in reply to retry code snippet

I suggest Attempt which already is there for you - ready to use. ;-)

ihb

Read argumentation in its context!