Clean up hashThreadId