Except as provided in the partnership agreement, the general partners who have not wrongfully dissolved a limited partnership or, if there are no general partners, the limited partners, may wind up the limited partnership's affairs; but the superior court may wind up the limited partnership's affairs upon application of a partner, a partner's legal representative, or assignee.