during the accident these circuit breakers provided for automatic disconnection of damaged networks , distribution panels and damaged electrical equipment , and ensured trouble-free operation of the electric power system until the submarine 's demise .