proper exit codes on error
Merge pull request #69 from jaredwilkening/master

client exit code set on errors