exit script properly
Merge pull request #162 from tonini/prevent-exit-info-issue

exit script properly