Add explicit exit status check for security in case set -e is ever removed