A limited partnership is dissolved and its affairs shall be wound up upon the happening of the first to occur of the following:
(1) at the time or upon the happening of events specified in writing in the partnership agreement;
(2) written consent of all partners;
(3) an event of withdrawal of a general partner if there is no other general partner, and a majority in interest of the remaining partners fail to agree in writing within 90 days after the withdrawal to continue the business of the limited partnership and to the appointment, effective as of the date of withdrawal, of one or more additional general partners; or
(4) entry of a decree of judicial dissolution under AS 32.11.380.