Use `set -e` to quit on error.

Thanks @pxlpnk