Disallow threads to join to themselves
Merge pull request #150 from halorgium/no-self-joins

External Shutdown Does Not Complete