check that through ends exactly once
emit "end" exactly once
2.3.2