UIMA-3964 refactored to enable clean shutdown on quiesce

git-svn-id: https://svn.apache.org/repos/asf/uima/sandbox/uima-ducc/trunk@1616496 13f79535-47bb-0310-9956-ffa450edef68