Keep track of the windows and hooks used by a thread to properly