code: @Override
      protected void close(ServerSocketChannel handle) throws Exception {
          SelectionKey key = handle.keyFor(selector);
  
          if (key != null) {
              key.cancel();
          }
  
          handle.close();
      }
docs: {@inheritDoc}