Avoiding stall or overspeed of the engine