Partial fix for CONNECTORS-1053.  Shutdown still generates exceptions though.

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