Updated shutdown of engine