All proceedings before the court under Part II, section 29 or section 49 shall be heard and determined in private unless the court otherwise directs.