cleaned up thread cleanup

fixed bug where node obj would have old/wrong data refs