code: public void closeBecauseAppStopping(CloseReason cr) {
          if (connLink.getLinkStatus() == LINK_STATUS.IO_OK) {
              try {
                  connLink.close(cr, true, true);
              } catch (RuntimeException e) {
                  if (connLink.getLinkStatus() == LINK_STATUS.IO_OK) {
                      if (tc.isDebugEnabled()) {
                          Tr.debug(tc, "Runtime exception during application stop close.   IO status is ok so throwing exception.");
                      }
                      throw e;
                  }
                  else {
                      if (tc.isDebugEnabled()) {
                          Tr.debug(tc,
                                   "Runtime exception during application stop close.   IO status is not ok so likely an exception during server shutdown, not throwing exception.");
                      }
                  }
  
              }
          }
          else {
              if (tc.isDebugEnabled()) {
                  Tr.debug(tc,
                           "Application stopped and tried to close connection, but IO status is not OK which is indicative of server shutting down, not attempting connection close.");
              }
  
          }
      }
docs: /*
  We have a lot of different ways to close now. I don't think we should read for the return close frame and closing the connection now
  * when the application is stopping makes sense. best way to do that (for now) is to use this close..