# libtmux:close-client

- **Package:** libtmux
- **Language:** Common Lisp
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-lisp/blob/c2e5fc4ed3befda21f45dfa5d5868c38fd138311/src/client.lisp#L97
- **Public owner:** libtmux
- **Page:** https://libtmux.org/en/lisp/latest/reference/libtmux-close-client/

```
(close-client client)

Primary method: libtmux:client:
(close-client (client libtmux:client))
```

Reject new work, cancel active work and release owned resources.
The operation is idempotent and does not kill the daemon. A bounded teardown
failure signals CLEANUP-FAILED; the active owner still retains cleanup duty.

## Methods

### `(close-client (client libtmux:client))`

## Parameters

- `client` (for `close-client(client)`)
- `client` (`libtmux:client`) (for `Primary method: libtmux:client`)

## Guides

Pages that discuss `close-client`.

### Concepts

- [Transport and cleanup](/en/lisp/latest/concepts/transport/)

### Guides

- [Explicit operations](/en/lisp/latest/guides/operations/)
