Despite all segments joining curve will not close

HI
I haven’t dug through it point by point, but the CurveBoolean command will quickly “fix” it and makes a clean closed curve.

This is a handy technique for cleaning up bogus curves from TrueType fonts too.