Electrical fires are one of the most common causes of fire on vessels like ours. Have a plan - You MUST be able to turn off the batteries, or the fire may re-ignite. Extinguishers in service and at multiple locations. 1/Shut off batts. 2/Shut off air and fuel 3/ use fire fighting systems, installed or hand held. Hopefully all this while another crew member issues a mayday, and another gets the raft ready...
My maritime fire fighting course just confirmed that you are unlikely to control a serious fire - get ready to get off!!
Oh, and if you have a race yacht and it's a lithium batte