The following should be done during a fire accident:
This question has multiple answers.
Sand can be a better alternative, but not always. Two pros for sand is that it's cheap and simple to use. A few cons are that is can be difficult to clean up and that one must be fairly close and use a greater volume than CO2.
On the other hand, CO2 can have advantages and disadvantages too. In addition to not having to clean up after it, CO2 can cover a large area quickly. Plus, many people are familiar and comfortable with this style fire extinguisher. On the down side, fires can re-ignite after the CO2 dissipates.
When there is a fire breakdown then make sure all electrical cords are in good condition – not frayed or cracked. If they are frayed or damaged in any way, do not use them. Also, take care of electrical cords so they do not become damaged. Place them where they will not be stepped on or subject to heat or water. Do not pull on cords to disconnect them (pull from the plug) and do not twist or kink cords. Cords should never be nailed or stapled to the wall or the baseboards. Check to see that cords are not overloaded. Extensions cords should only be used on a temporary basis; they are not intended as permanent household wiring.