On termination of a derivative proceeding, the court may:
1. Order the corporation to pay the plaintiff's expenses incurred in the proceeding if it finds that the proceeding has resulted in a substantial benefit to the corporation; or
2. Order the plaintiff or the plaintiff's attorney to pay the corporation's or any defendant's expenses incurred in defending the proceeding if it finds that the proceeding was commenced or maintained arbitrarily, vexatiously, or not in good faith.
1992, c. 802; 1993, c. 233; 2019, c. 734.