Depends if there is still love in the marriage (both ways).. If there is still love, you can always still talk and work things out with your spouse. If there's no longer love in the marriage, it's as good as a shell marriage. Shell marriage never ends up well, even for the kids. Although divorce is always the last option, I wouldn't stay in the marriage just because my spouse is a good parent. It depends on your value too I guess. Some people value their kids' life more than theirs, but I personally would value my life over anything else, cause I believe one have to learn to love themselves before they can love others, and that their kids will learn from their parents to value themselves too.