(2)If a riot or unlawful assembly is imminent or takes place it shall be lawful for any Executive Magistrate or Police Officer who is present to direct that such place shall be closed arid kept closed for such period as he thinks fit and in the absence of any Executive Magistrate or Police Officer the person referred to in sub-section (1) shall himself close such place.