shell script cleanup

- exit in the error msg function
- avoid issue with `cd -` not executing if you ctrl-c or exit early
- idiomatic error check for scrot failure