shutdown bug fix
Merge pull request #106 from ionull/patch-1

shutdown bug fix