code: func (c *command) Close() error {
  	if !c.connected {
  		return nil
  	}
  
  	c.connected = false
  
  	//XXX: If did read the full packfile, then the session might be already
  	//     closed.
  	_ = c.Session.Close()
  
  	return c.client.Close()
  }
docs: // Close closes the SSH session and connection.