gracefully handle failed startup in stop.sh