I had an electrical fire in an R22 some years back, I could smell electrics burning and hear cracking / poping noises from behind the instrument console.
I done what it said in the POH;
Master Battery & Alternator both off.
Open the vents and land ASAP.
As soon as the electrics were turned off the cracking poping noises stopted, this obviously took away the source of the fire (Electrics). So its vital to follow the POH by turning off the Master Battery & Alternator and not just land.
I have to admit it was a bit distracting as any real emergency is but as soon as the electrics are turned off the fire will most likely stop so why compound the situation by entering auto.