docs: public void cleanupRemoteFailureScope() {
          if (tc.isEntryEnabled())
              Tr.entry(tc, "cleanupRemoteFailureScope");
  
          if (!_failureScopeController.localFailureScope()) {
              // If we are in peer recovery - we need to forget any knowledge of the transactions in memory
              // Need to be careful after this as we have no transactions in memory but there may be some in the logs
              // so we need to get out as soon as possible and not do any more work with this peer.
              if (tc.isDebugEnabled())
                  Tr.debug(tc, "Stop processing. Clear down any transactions");
              if (_recoveringTransactions.size() > 0) {
                  // Get list of current recovered transactions
  
                  // NOTE TO REVIEWERS - SHOULD REALLY BE SYNCHRONIZED BETWEEN ALLOCATING ARRAY AND toArray
                  TransactionImpl[] recoveredTransactions = new TransactionImpl[_recoveringTransactions.size()];
                  _recoveringTransactions.toArray(recoveredTransactions);
  
                  for (int i = 0; i < recoveredTransactions.length; i++) {
                      // We need to "forget" them so we clean up any datastructures etc...
                      try {
                          recoveredTransactions[i].forgetTransaction(false);
                      } catch (Throwable exc) {
                          FFDCFilter.processException(exc, "com.ibm.tx.jta.impl.RecoveryManager.cleanupRemoteFailureScope", "2069", this);
                      }
                  }
              }
  
              // NOTE we always shut the logs when cleaning up for a remote failure scope
  
              // If the resync thread has marked the recoveryManager as cleanRemoteShutdown, then it has
              // already closed the logs
              if (!_cleanRemoteShutdown) {
                  try {
                      preShutdown(true); // Process the tran log
                  } catch (Exception e) {
                      // No FFDC required
                  }
  
                  postShutdown(true); // Process the partner log
              }
          }
  
          if (tc.isEntryEnabled())
              Tr.exit(tc, "cleanupRemoteFailureScope");
      }