Fix IsThread destructor