bug fix connectedDocGroup not freed
after scanning completed.