Attention! Do not turn off the engine until the car comes to a complete stop with the gear engaged.
Before turning off the engine, wait until the engine speed is at idle before turning off the engine. Do not press the accelerator pedal - this is a completely useless measure.