Fix condition in c56377b

Print retry success message only when all logic has completed