improve stop.sh