Dereference dead threads.
I wonder if this will be enough...