Simplify main loop termination logic
Simplify main loop termination logic

priorknowledge/loom,priorknowledge/loom,fritzo/loom,fritzo/loom,priorknowledge/loom,posterior/loom,posterior/loom,posterior/loom,fritzo/loom