36. (1) The provisions of an agreement requiring a person to pay periodic maintenance cease to have effect on the death of the person, unless the agreement provides otherwise.
(2) The provisions of an agreement providing for a person to receive periodic maintenance cease to have effect on the death of the person.
(3) Subsections (1) and (2) shall not be taken to affect the right to recover arrears of periodic maintenance due under the agreement at the time of the party's death.