Avoid consecutive cusps with state in line generator.
Change finally to except GeneratorExit.
Still Broken: adding null segment from curve generator.