Different exit status on errors
Resetting digest context after usage instead of before