Returning non-zero exit code when something failed

Zero for success, non-zero for failure
Didn't try to encode anything fancier than this in the exit code.
Fixes #9