Two suggestions:
1. Throttle down to -1 to shut off the engine, not 0.
2. Still, sometimes I add an additional throttle-down term soon after the engines are supposed to throttle down to -1, to guarantee they're fully off. For example,
537.5=engine(100,-1,2.5)
541=engine(0,-1,0.1)(The above...