added shutdown support need to write tests
Merge pull request #259 from fridgei/master

added shutdown support