What is different in your case, is that you have NOT tried to demonize your wife, you have LOOKED at your own misgivings, and you are WORKING on you. Sounds like you have nothing to worry about. Unless you did something so hedonistic, so reprehensible, on the way to the courthouse TODAY, I think the Judge will see right through this charade. Peace.
Yup!
"My actions are my only true belongings. I cannot escape the consequences of my actions. My actions are the ground upon which I stand." Thich Nhat Hanh