Fix criticalStopEngine