A court may order that proceedings under this Act (other than criminal proceedings) be heard, in whole or in part, in closed court if the court considers that the order is necessary to prevent interference with the administration of criminal justice.