fixed stop.sh for mac