Starting from a resampled curveline that I put through a sweep I end up with ends that aren't perfectly horizontal.
After having set the normals of both endpoints to 0,1,0, the problem of the ends was solved but created another problem by flattening the rest of the primitive.
Not quite sure if there is way to solve this with these nodes or if a different approach would be required.