Ensure that both Connection and XAConnection objects are closed. With Oracle, the XAConnection holds the physical database connection and a number of other caches which we need to release.