Add stop action on doBefore