Added Thread::destroy() method