@leonHKFTG have you seen this thread? Organizing/Ordering Points for Polygon
Suggestion would be to take your curves, then extend the start and end of them by half the thickness of the core layer + a tolerance value, then use one of these algorithms to join them