docs: private void closeConnections(int mode, int connectionType) {
  
          //ME_STOP_QUIESCE is called only from unit test. ME_STOP_QUIESCE can be removed.
          if (mode == JsConstants.ME_STOP_QUIESCE) {
              // now we do the business of each connection
              Iterator<SICoreConnection> connectionIterator = getConnections()
                              .keySet().iterator();
              while (connectionIterator.hasNext()) {
                  // quiesce for each listener
                  ConnectionImpl currentConnection = (ConnectionImpl) connectionIterator
                                  .next();
                  try {
  
                      if (((connectionType == SIMPConstants.MP_VIACOMMS_CONNECTION) && (currentConnection.getConnectionType() == SIMPConstants.MP_VIACOMMS_CONNECTION))
                          ||
                          ((connectionType == SIMPConstants.MP_VIACOMMSSSL_CONNECTION) && (currentConnection.getConnectionType() == SIMPConstants.MP_VIACOMMSSSL_CONNECTION))
                          ||
                          ((connectionType == SIMPConstants.MP_INPROCESS_CONNECTION) && (currentConnection.getConnectionType() == SIMPConstants.MP_INPROCESS_CONNECTION)))
                      {
                          SICoreConnectionListener[] listeners = currentConnection
                                          .getConnectionListeners();
                          for (int listenIndex = 0; listenIndex < listeners.length; listenIndex++) {
                              listeners[listenIndex]
                                              .meQuiescing(currentConnection);
                          }
  
                          // now stop this connection
                          currentConnection._close(false);
  
                          // now register this stop on each listener
                          listeners = currentConnection
                                          .getConnectionListeners();
                          for (int listenIndex = 0; listenIndex < listeners.length; listenIndex++) {
                              listeners[listenIndex]
                                              .meTerminated(currentConnection);
                              // Remove the connection listener from the list.
                              currentConnection
                                              .removeConnectionListener(listeners[listenIndex]);
                          }
                          //now stop this connection
                          //PM72328.dev: Close connection after ME terminated set on connection listeners 
                          currentConnection._close(false);
                      }
  
                  } catch (SIMPConnectionUnavailableException exception) {
                      // No FFDC code needed
                  } catch (SIException coreException) {
                      FFDCFilter
                                      .processException(
                                                        coreException,
                                                        "com.ibm.ws.sib.processor.impl.MessageProcessor.stop",
                                                        "1:1938:1.445", this);
                  }
  
              } // end while
          } // end if
          else {
              // now we do the business of each connection
              Iterator<SICoreConnection> connectionIterator = getConnections()
                              .keySet().iterator();
              while (connectionIterator.hasNext()) {
                  // stop for each listener
                  ConnectionImpl currentConnection = (ConnectionImpl) connectionIterator
                                  .next();
  
                  // stop this connection depending on connectinType.
                  try {
                      if (((connectionType == SIMPConstants.MP_VIACOMMS_CONNECTION) && (currentConnection.getConnectionType() == SIMPConstants.MP_VIACOMMS_CONNECTION))
                          ||
                          ((connectionType == SIMPConstants.MP_VIACOMMSSSL_CONNECTION) && (currentConnection.getConnectionType() == SIMPConstants.MP_VIACOMMSSSL_CONNECTION))
                          ||
                          ((connectionType == SIMPConstants.MP_INPROCESS_CONNECTION) && (currentConnection.getConnectionType() == SIMPConstants.MP_INPROCESS_CONNECTION)))
                      {
                          currentConnection._close(false);
  
                          // now register this stop on each listener
                          SICoreConnectionListener[] listeners = currentConnection
                                          .getConnectionListeners();
                          for (int listenIndex = 0; listenIndex < listeners.length; listenIndex++) {
                              listeners[listenIndex]
                                              .meTerminated(currentConnection);
                              // Remove the connection listener from the list.
                              currentConnection
                                              .removeConnectionListener(listeners[listenIndex]);
                          }
                      }
  
                  } catch (SIMPConnectionUnavailableException exception) {
                      // No FFDC code needed
                  } catch (SIException coreException) {
                      FFDCFilter
                                      .processException(
                                                        coreException,
                                                        "com.ibm.ws.sib.processor.impl.MessageProcessor.stop",
                                                        "1:1976:1.445", this);
                  }
              }
          } // end if
      }