Yep, that is why Halon is used in data centers. It stops the combustion reaction at relatively low concentrations and it is a gas so it does not damage electronics. However, breathing it in is not really recommended.
I am surprised at your last line, if there was not a fire, why did some hardware not survive?