Shutdown message fix

fixes #138
Merge pull request #142 from Sudyx/master

Shutdown message fix