Add exit code, fix #190
Merge pull request #191 from koenpunt/patch-1

Add exit code, fix #190