Couple points...
I do not see any benifit to letting it idle for an extended amount of time before shutting it off. Just bring it down to idle and turn it off. (If your manual says 1/2 throttle, then follow that)
Also, any engine thats at least 10 years old has a fuel shutoff solenoid in the carb. When the key is turned off, the solenoid blocks the fuel from being sucked into the engine. This takes care of any fear of cylinder wash and lessens the chance for backfires.
The reason you get a backfire, is that there is fuel that was not ignited due to the ignition being shut off and then its spent into the hot muffler. Thats where you get your "bang". Its not in the engine, and you can't "blow a head gasket" due to a backfire after turning the key off.