added stop logic to smoketesting