Fixed SIGTERM handling
Merge pull request #22 from ZackAdams/master

Fixed SIGTERM handling