(a) Except as provided by subsection (b) of this section, each person responsible for any excavation or demolition operation designated in section 5-22 that results in any damage to an underground utility shall, immediately upon discovery of such damage, notify the city of the location and nature of the damage and shall allow the city to accomplish necessary repairs before completing the excavation or demolition in the immediate area of such utility. (b) Each person responsible for any excavation or demolition operation designated in section 5-22 that results in damage to an underground utility permitting the escape of any flammable, toxic, or corrosive gas or liquid shall, immediately upon discovery of such damage, notify the city, police and fire departments, and take any other action as may be reasonably necessary, to protect persons and property and to minimize the hazards until arrival of the city's utility operating personnel or the police and fire departments.