"before an application for leave contemplated in subsection a is heard the court may direct that any person including the complainant whose presence is not necessary may not be present at the proceedings"