Removed release from the thread destructor