UIMA-3777 prevent exit code from being reset to 0 if a process is killed via SIGTERM

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