(2)If the Magistrate by whom any such case is heard discharges or acquits all or any of the accused, and is of opinion that the accusation against them or any of them was false and either frivolous or vexatious, the Magistrate may, by his order of discharge or acquittal, if the shareholder upon whose complaint the accusation was made is present, call upon him forthwith to show cause why he should not pay compensation to such accused, or to each or any of such accused when there is more than one, or if such shareholder is not present, direct the issue of a summons to him to appear and show cause as aforesaid.