correction in contract stop logic to avoid stop/start loop error