explicitly close spin thread to prevent loss of thread handle.