Terminate on first successful try