At the termination of a trust, the trust property shall be disposed of as follows:
(a)
In the case of a trust that is revoked by the settlor, the trust property shall be disposed of in the following order of priority:
(1)
As directed by the settlor.
(2)
As provided in the trust instrument.
(3)
To the extent that there is no direction by the settlor or in the trust instrument, to the settlor, or his or her estate, as the case may be.
(b)
In the case of a trust that is revoked by any person holding a power of revocation other than the settlor, the trust property shall be disposed of in the following order of priority:
(1)
As provided in the trust instrument.
(2)
As directed by the person exercising the power of revocation.
(3)
To the extent that there is no direction in the trust instrument or by the person exercising the power of revocation, to the person exercising the power of revocation, or his or her estate, as the case may be.
(c)
In the case of a trust that is terminated by the consent of the settlor and all beneficiaries, as agreed by the settlor and all beneficiaries.
(d)
In any other case, as provided in the trust instrument or in a manner directed by the court that conforms as nearly as possible to the intention of the settlor as expressed in the trust instrument.
(e)
If a trust is terminated by the trustee pursuant to subdivision (b) of Section 15408, the trust property may be distributed as determined by the trustee pursuant to the standard provided in subdivision (d) without the need for a court order. If the trust instrument does not provide a manner of distribution at termination and the settlor’s intent is not adequately expressed in the trust instrument, the trustee may distribute the trust property to the living beneficiaries on an actuarial basis.