I am very impressed by the way you handled this with grace and dignity.
I also find it a little unnerving that what you thought was a simple meeting turned into a surprise divorce proceeding. Wouldn't you think that your STBX would have known what this was?? It just seems odd to me.
I also find it your STBX's actions odd, during and after the hearing.
Hang in there brother. I see good things for a great man like you.