As far as what you could have done to discourage you W from leaving.... I don't know.... maybe taken her skydiving.... or bought a Harley a few years ago, and started a serious weight lifting regimen, and filled your biceps with tattoos...
Quite honestly I think it's not you, but something inside of her. But I think as a father you are doing great. Your boys are lucky to have you as a dad. Without your stability and involvement, their stuggles with this situation would be much worse.
Have you made any fun plans for the weekend? Any fun GALing activities?
There is no arriving, ever. It is all a continual becoming.