Prevent destructors closing a file from throwing an exception (XERCESC-2031)

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