Quits process communication.
<p>
Detaches the network link from the process communicator and closes the link.
338259
public void quit()
	{
		if (pc != null) {
			final KNXNetworkLink lnk = pc.detach();
			if (lnk != null)
				lnk.close();
			Runtime.getRuntime().removeShutdownHook(sh);
		}
	}
1177132
@Override
  public void destroy() {
    try {
      this.isWork = false;
      try {
        if (this.thread != null) {
          this.thread.join(2000);
          if (this.thread.isAlive()) {
            // FIXME: remove ASAP
            this.thread.interrupt();
          }
          thread = null;
        }
      }
      catch (InterruptedException e) {
        logger.debug("Can not stop thread", e);
      }

      if (this.serverSocket != null) {
        this.serverSocket.close();
        this.serverSocket = null;
      }
    }
    catch (IOException e) {
      logger.error("", e);
    }
  }
279085
synchronized void removeServerProcess() {
        this.requiredState = InternalState.STOPPED;
        internalSetState(new ProcessRemoveTask(), InternalState.STOPPED, InternalState.PROCESS_REMOVING);
    }
1186012
@Override
    public void disconnect()
    {
        network.disconnect();
        for (final L listener : listeners)
        {
            network.removeListener(listener);
        }
        listeners.clear();
    }
954790
public void disconnect() {		
		if(!isConnected){
			if(this.isReconnecting){
				stopReconnecting();
				this.isConnecting = false;
			} else {
				raiseOrtcEvent(EventEnum.OnException,this, new OrtcNotConnectedException());
			}
		}else{
			stopHeartBeatInterval();
			if (appContext != null && !googleProjectId.isEmpty()
					&& !isDisconnecting) {
                if(this.intentService != null){
				    this.intentService.removeServiceOrtcClient(this);
                }
				//this.appContext.unbindService(this.intentServiceConnection);
			}
			this.disconnectIntern();
		}
	}
491837
def quit(self):
        """"""
        # stop all threads and close the socket
        self.receive_thread.stopped = True
        # self.receive_thread._Thread__stop()

        self.message_thread.stopped = True
        # self.message_thread._Thread__stop()

        # self.ping_thread.stopped = True
        # self.ping_thread._Thread__stop()

        self.receive_thread.join()
        _LOGGER.info('receive_thread exited')
        self.message_thread.join()
        _LOGGER.info('message_thread exited')

        self.socket.close()
1059905
def disconnect(self, *args, **kwargs):
        
        quit_message = "%s %s" % (settings.GNOTTY_VERSION_STRING,
                                  settings.GNOTTY_PROJECT_URL)
        self.client.connection.quit(quit_message)
        super(IRCNamespace, self).disconnect(*args, **kwargs)
140612
@Override
    public void close()
                    throws SIResourceException, SIConnectionLostException,
                    SIErrorException
    {
        if (TraceComponent.isAnyTracingEnabled() && CoreSPIConnection.tc.isEntryEnabled())
            SibTr.entry(CoreSPIConnection.tc, "close", this);

        // Lock on the connections lock object to stop Message Processor from 
        // closing us
        _messageProcessor.getConnectionLockManager().lock();
        try
        {
            // Close the connection and remove the connection listeners.
            _close(true);
        } finally
        {
            _messageProcessor.getConnectionLockManager().unlock();
        }

        if (TraceComponent.isAnyTracingEnabled() && CoreSPIConnection.tc.isEntryEnabled())
            SibTr.exit(CoreSPIConnection.tc, "close");
    }
1121476
public synchronized final void close()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "close");

    closed = true;
    if (browseCursor != null) {
      try
      {
        browseCursor.finished();
      }
      catch (SISessionDroppedException e)
      {
        FFDCFilter.processException(
            e,
            "com.ibm.ws.sib.processor.impl.AOBrowserSession.close",
            "1:237:1.30",
            this);

        SibTr.exception(tc, e);
        SibTr.error(tc, "INTERNAL_MESSAGING_ERROR_CWSIP0002",
          new Object[] {
            "com.ibm.ws.sib.processor.impl.AOBrowserSession.close",
            "1:244:1.30",
            SIMPUtils.getStackTrace(e) });
      } // deallocate resources
      browseCursor = null;
    }
    if (expiryAlarmHandle != null) {
      expiryAlarmHandle.cancel();
      expiryAlarmHandle = null;
    }

    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "close");

  }
1214243
public void close() {
    if (consumer != null) {
      try {
        consumer.close();
      } catch (Throwable t) {
        warn(t.getMessage());
      }
    }

    conn.close();
  }
287028
def close(self):
        
        if self._recv_task:
            self._recv_task.cancel()

        self._disable_monitoring()

        if self._monitor_task and not self._monitor_task.done():
            self._monitor_task.cancel()

        self._receiver.cancel()
        self._socket.close(linger=0)

        self._msg_router.fail_all(DisconnectError())
254005
static void closeLink(CommsConnection conn) {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "closeLink", conn);

    conn.setSchemaSet(null);

    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "closeLink");
  }
889399
public void close() {
		if (rtpChannel != null) {
			if (rtpChannel.isConnected()) {
				try {
					rtpChannel.disconnect();
				} catch (IOException e) {
					logger.error(e);
				}
				try {
					rtpChannel.socket().close();
					rtpChannel.close();
				} catch (IOException e) {
					logger.error(e);
				}
			}
		}

		if (rtcpChannel != null) {
			rtcpChannel.socket().close();
		}

		// System.out.println("RX COUNT:" + rxCount + ",TX COUNT:" + txCount);
		rxCount = 0;
		txCount = 0;
		input.deactivate();
		dtmfInput.deactivate();
		dtmfInput.reset();
		output.deactivate();
		dtmfOutput.deactivate();
		this.tx.clear();

		heartBeat.cancel();
		sendDtmf = false;
	}
393742
@Override
	public void close() {
		try {
			callbackRegistry.acceptConnectionStateChange(BitfinexConnectionStateEnum.DISCONNECTION_INIT);
			logger.debug("close() called");
			if (heartbeatThread != null) {
				heartbeatThread.interrupt();
				heartbeatThread = null;
			}

			if (websocketEndpoint != null) {
				websocketEndpoint.close();
				websocketEndpoint = null;
			}
			connectionStateChange(BitfinexConnectionStateEnum.DISCONNECTION_SUCCESS);
		} catch (final Exception e) {
			connectionStateChange(BitfinexConnectionStateEnum.DISCONNECTION_FAILED);
			throw new BitfinexClientException(e);
		}
	}
1129613
public void destroy() {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            Tr.entry(tc, "destroy");
        }

        // Go through the hashtable and destroy all long-lived, single instance,
        // resources related to a given TCP Channel type (NIO, AIO, etc...)
        for (ChannelTermination ct : this.terminationList.values()) {
            ct.terminate();
        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            Tr.exit(tc, "destroy");
        }
    }
229228
public void close ()
        throws IOException
    {
        if (_sock != null) {
            _sock.close();

            // clear out our references
            _sock = null;
            _in = null;
            _out = null;
        }
    }
605281
public void close() {
        done = true;
        connected = false;
        synchronized (this) {
            try {
                if (socket != null) {
                    if (traceLevel >= ctrlThreshold) {
                        System.out.println("-> CLOSE");
                    }
                    socket.close();
                }
            } catch (final IOException e) { /* ignore socket close errors */
            } finally {
                socket = null;
            }
        }
    }