Your in my prayrers tonight. Stand tall you did what you could, it still doesn't mean your over. From what I read, you are done, however, you have kids there, and this will require some type of relationship. So don't dismiss everything because a court says your D'ed. Hold your ground tomorrow, dont' give in. You will prevail, but also don't quit.
I really questioned writing this but I have to, she is the mother of those children. Treat her as such, even if you move on. I know you will.