Close the thread handle of the tray icon thread.