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