Fixed typo with calling the wrong exit function.
Merge pull request #188 from IronTetsubo/pull3

Fixed issue #141 - typo with calling the wrong exit function.