Closing the thread handle should delete the thread object if it's finished. When this handle was retained, closing the handle left a lingering handle reference and thus this XThread would leak