what happens when a marriage dissolves