A bench of justices said that keeping dead marriages alive through years of litigation only perpetuates frustration and emotional distress.