They will always want their home to come home to. I do not advocate divorce as a first step when a marriage is going awry. Anyone can manage life during good times. It is getting through the bad times that makes or breaks a relationship. But, if you have tried everything and your marriage is still not working, it is not unreasonable to consider getting out.
Divorce is always painful and does leave scars.
So does a bad marriage. If you sacrifice for the sake of your children, make sure you have something left for yourself. You will need it in the future. Too many painful letters have told me so. She has served on the executive board of the American Academy of Psychotherapists.