Add an exit_with_error() function.
Quit if sha1sum fails.