code: private void closeConnectionAfterBatch(Connection conn, int initialIsolation) throws SQLException {
          if (_isDB2)
          {
              if (Connection.TRANSACTION_REPEATABLE_READ != initialIsolation && Connection.TRANSACTION_SERIALIZABLE != initialIsolation)
                  try
                  {
                      conn.setTransactionIsolation(initialIsolation);
                  } catch (Exception e)
                  {
                      if (tc.isDebugEnabled())
                          Tr.debug(tc, "setTransactionIsolation threw Exception. Specified transaction isolation level was " + initialIsolation + " ", e);
                      FFDCFilter.processException(e, "com.ibm.ws.recoverylog.spi.SQLMultiScopeRecoveryLog.closeConnectionAfterBatch", "3696", this);
                      if (!isolationFailureReported)
                      {
                          isolationFailureReported = true;
                          Tr.warning(tc, "CWRLS0024_EXC_DURING_RECOVERY", e);
                      }
                  }
          }
          conn.close();
      }
docs: closes the connection and resets the isolation level if required