When a cause of scandalous or obscene nature is on trial, the presiding judge or the justice shall exclude therefrom all minors, unless necessarily present as parties or witnesses, and in his or her discretion, may exclude all persons not so present.
12 V.S.A. § 1901