code: public void destroySocket(Socket s)
      {
          if (s == null) {
              return;
          }
          s.setLinger(linger);
          s.close();
          this.sockets.remove(s);
      }
docs: Destroys managed socket within this context
  and remove from sockets list
  @param s
  org.zeromq.Socket object to destroy