code: @Deactivate
      protected void deactivate(ComponentContext context) {
          if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
              Tr.event(this, tc, "Deactivating");
          }
          instance.get().compareAndSet(this, null);
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
              Tr.event(this, tc, "Destroying all endpoints");
          }
          EndPointMgrImpl.destroyEndpoints();
  
          try {
              this.chfw.destroy();
          } catch (Throwable t) {
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                  Tr.debug(this, tc, "Error destroying framework: " + t);
              }
          }
  
          this.chfw.deregisterFactory("TCPChannel");
          this.chfw.deregisterFactory("UDPChannel");
      }
docs: DS method for deactivating this component.
  
  @param context