I went down to the wire twice in my sitch; both times not getting a D. Things can change in your sitch on a moments notice so don't give up.
Also remember h is also acting as if though his heart is melting. My h also had numerous ow during our 1.5 yr separation. THey meant nothing because he hadn't stopped loving me. I see now that those relationships were just his cry for help. Your h is confused though he may be putting on a good act by being involved with ow.
Don't give up. Give more effort to change little things bout yourself. LIttle things worked for me. Change of hair color, change of clothing style, taking up sports or out of the ordinary hobbies even taking up a game h likes would spark his interest. Cause a double take. Maybe change the way you talk or even talk less. Many of these things worked for me. And many many times I got to hear my h say he didn't love, wanted a d, stopped talking to me for months at a time, etc., yet my belief in what was going to BE was much stronger than any confused rambling he may have treated me too over the 1.5 years. I must admit that sometimes I went ballistic, did go into cry jaggs some days yet I didn't loose my vision. Don't lose yours either no matter how crazy he gets.
I'd also suggest getting close to God, journaling prayers in which you speak your beliefs. Too much negativity gives evil the course of action to take. Don't speak your fears out loud they tend to run rampant if you do.
Despite the fact that your d is soo close, your sitch can change. There's still hope after the d. Stand firm and