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