- shutdown method can be specified
Merge pull request #32 from hadfl/shutdown

- shutdown method can be specified
Merge pull request #3 from hadfl/master

pull in upstream