code: public synchronized void close() {
          acceptor.quit();
          OtpCookedConnection conn;
          final Collection<OtpCookedConnection> coll = connections.values();
          final Iterator<OtpCookedConnection> it = coll.iterator();
  
          mboxes.clear();
  
          while (it.hasNext()) {
              conn = it.next();
              it.remove();
              conn.close();
          }
          initDone = false;
      }
docs: Close the node. Unpublish the node from Epmd (preventing new connections)
  and close all existing connections.