Really fix release.
Add cleanup method for dead threads that don't cleanup properly.