Fixed node deletion bug

runtime error would occur when deleting a clientnode, this occurred
because the delete command would also terminate the clientnode's thread,
which was the currently running thread. Detaching the thread from its
handle fixed the error.