stop simulation if stable