code: def disconnect(self):
          
          if self._shell:
              self._shell.close()
              self._shell = ""
          if isinstance(self._session, manager.Manager):
              self._session.close_session()
          elif isinstance(self._session, paramiko.client.SSHClient):
              self._session.close()
              self._session = ""
          elif isinstance(self._session, SCPClient):
              self._session.close()
              self._session = ""
              self._scp = ""
docs: Close the connection(s) to the device.
  
          Purpose: Closes the current connection(s) to the device, no matter
                 | what types exist.
  
          @returns: None
          @rtype: None