Never rev the engine before shutting down, not only will you force unburnt fuel to accumulate in your cylinders, you'll also risk the timing belt/chain jumping off a slot due to sudden change in engine speed.