adding correct exit codes for caught exceptions
Merge pull request #1 from brianvans/exit_codes

adding correct exit codes for caught exceptions