Fixed deadlock bug when doing a shut down.
Merge branch 'master' of https://github.com/anisus/crafter