code: private void closeSocketChannel(SocketChannel sc) {
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
              try {
                  Tr.event(this, tc, "Closing connection, local: " + sc.socket().getLocalSocketAddress() + " remote: " + sc.socket().getRemoteSocketAddress());
              } catch (Throwable t) {
                  // protect against JDK PK42970 throwing illegal arg
              }
          }
  
          try {
              sc.close();
          } catch (IOException ioe) {
  
              if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
                  Tr.event(this, tc, "IOException caught while closing connection " + ioe);
              }
          }
      }
docs: Handle closing the socket channel with appropriate debug and error
  protection.
  
  @param sc