LINEs to ClosedPolyCurve

No worries. If you’re dealing with many lines, this code will be more performant for extracting face loops: