adding a proper exit code
Merge pull request #50 from arbus/error_code

Adding a proper exit code. Fixes #38, #50.