Closes the device.
967053
def close(self):
        
        try:
            Device.close(self)

            # HACK: Probably should fork pyftdi and make this call in .close()
            self._device.usb_dev.attach_kernel_driver(self._device_number)

        except Exception:
            pass
916726
def close(self):
    """"""
    if hasattr(self, "_controller") and self._controller:
      self._controller.quit()
      self._controller.close()
      self._controller = None
    self._shutdown()
    if hasattr(self, "_port") and self._port:
      portpicker.return_port(self._port)
      self._port = None
    if hasattr(self, "_tmp_dir") and os.path.exists(self._tmp_dir):
      shutil.rmtree(self._tmp_dir)
105158
def closeEvent(self, e):
        """"""
        self.emit('close_widget')
        super(DockWidget, self).closeEvent(e)
740100
public function close()
    {
        if (!is_resource($this->socket)) {
            return;
        }

        fclose($this->socket);
        $this->socket = null;
    }
349145
def close(self, force=False) -> None:
        
        self.fp.close = self._close
        if self._manual_opened or force:
            self.fp.close()
1370055
protected void close() {
        guard.close();

        if (fd != null) {
            datagramSocketClose();
            ResourceManager.afterUdpClose();
            fd = null;
        }
    }
990239
public void close() {
        logger.fine(Thread.currentThread().getName() + " closing");
        try {
            this.ris.close();
        } catch (IOException e) {
            // TODO: Can we not let the exception out of here and report it
            // higher up in the caller?
            DevUtils.logger.log(Level.SEVERE, "close() ris" +
                DevUtils.extraInfo(), e);
        }
        try {
            this.ros.close();
        } catch (IOException e) {
            DevUtils.logger.log(Level.SEVERE, "close() ros" +
                DevUtils.extraInfo(), e);
        }
    }
605992
def close(self):
        
        if hasattr(self, '_FITS'):
            if self._FITS is not None:
                self._FITS.close()
                self._FITS = None
        self._filename = None
        self.mode = None
        self.charmode = None
        self.intmode = None
        self.hdu_list = None
        self.hdu_map = None
141054
def terminate(self, devices):
        
        for device in devices:
            self.logger.info('Terminating: %s', device.id)
            try:
                device.delete()
            except packet.baseapi.Error:
                raise PacketManagerException('Unable to terminate instance "{}"'.format(device.id))
1054308
def close(self):
        
        self._closing = True
        for i in xrange(self.size):
            self.inq.put(_STOP)
751789
def close(self):
        
        if self.device is not None:
            self.device.shutdown(socket.SHUT_RDWR)
            self.device.close()
520375
def close(self):
        
        if getattr(self, '_connection', None):
            logger.debug('Closing sqlite connection.')
            self._connection.close()
            self._connection = None
1104844
public function close()
    {
        if ($this->fileDescriptor !== null) {
            @fclose($this->fileDescriptor);
            $this->fileDescriptor = null;
        }
    }
347878
def close(self):
        """"""
        if self.sock:
            self.sock.close()
        self.sock = 0
        self.eof = 1
721547
def close(self):
        
        # This may not be absolutely necessary, but it is safe.
        # It's the closest thing to a close() method.
        if self._dev is not None:
            usb.util.dispose_resources(self._dev)
            self._dev = None
1015085
def _Close(self):
    """"""
    self._fsntfs_data_stream = None
    self._fsntfs_file_entry = None

    self._file_system.Close()
    self._file_system = None
96884
def close(self):
        
        if self._file:
            if not(self._file.closed):
                self._file.close()
        self.closed = True