add stop control for automation.sh