The building official shall have the power to authorize disconnection of utility service to the building, structure or system regulated by the technical codes, where necessary, to eliminate an immediate hazard to life or property. The building official shall notify the serving utility, and whenever possible the owner and occupant of the building, structure or service system, of the decision to disconnect prior to taking such action. If not notified prior to disconnecting, the owner or occupant of the building, structure or service system shall be notified in writing, as soon as practical thereafter.