No such thing as `os.exit()`. Fixes #5.
Merge pull request #6 from mpereira/terminate-script-correctly

No such thing as `os.exit()`. Fixes #5.