Fix exit code
Merge pull request #6 from bayandin/fix-exit-code

Resolves #5.