Closing a Loft with a non planar curve

Hi, I have several curves aligned in the same plane referenced in Rhino, and I did a loft in Grasshopper. The problem is that the first and the last one are non-planar curves and I need to close it in both the front and back part. Is there a way to close it?

I send you a few captures.

Have you tried patch on those curves?
If you share your file we might be able to help you better.

OMG! You are a genius! Thanks!