Section 46. Except as provided in the partnership agreement, the general partners who have not wrongfully dissolved a limited partnership or, if none, the limited partners, may wind up the limited partnership's affairs; provided, however, that the superior court department of the trial court may wind up the limited partnership's affairs upon application of any partner, his legal representative, or assignee.