Update start.sh

Small refactor, handle errors, etc...