This is an extremely bad advice. In fact, you should do exactly the opposite - on AT, shut down the engine without touching the selector (there is a chance that AT won't disengage), and on MT, shut down the engine and switch to the lowest gear.
When the engine is not started, the kinetic energy of the car is spent to keep the crankshaft rotating and pistons moving. It stops MUCH faster this way.