(a) The court may modify the administrative or dispositive terms of a trust or terminate the trust if, because of circumstances not anticipated by the grantor, modification or termination will further the purposes of the trust. To the extent practicable, the modification must be made in accordance with the grantor's probable intention.
(b) The court may modify the administrative terms of a trust if continuation of the trust on its existing terms would be impracticable or wasteful or impair the trust's administration.
(c) Upon termination of a trust under this section, the trustee shall distribute the trust property in a manner consistent with the purposes of the trust.