UIMA-3665 Modified to manage lifecycle of shared instance of uima-as client

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