Avoiding stall or over-speed of the engine