Upon termination of a trust under G.S. 36C-4-411(a), the trustee shall distribute the trust property as agreed by the beneficiaries. Upon termination of a trust under G.S. 36C-4-411(b) or (c), the trustee shall distribute the trust property in accordance with the order entered by the court. Upon termination of a trust under G.S. 36C-4-412(a) or G.S. 36C-4-414, the trustee shall distribute the trust property in a manner consistent with the purposes of the trust.
N.C. Gen. Stat. § 36C-4-418