ckeanup thread management