Main procedure repeats infinitely (or until error hit)