# Libtmux_eio.Client.close

- **Module:** Libtmux_eio
- **Package:** libtmux-eio
- **Language:** OCaml
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ocaml/blob/205dfda49742592b479247049d186956e4a4cfe9/eio/libtmux_eio.mli#L590
- **Public owner:** Libtmux_eio
- **Page:** https://libtmux.org/en/ocaml/latest/reference/libtmux_eio-client-close/

```
val close : t -> (unit, Libtmux.Error.t) result
```

Retire the generation and close owned control clients and descriptors. Reject new [`submit`](/en/ocaml/latest/reference/libtmux_eio-client-submit/) and [`subscribe`](/en/ocaml/latest/reference/libtmux_eio-client-subscribe/) calls as soon as closing starts. Concurrent calls await the same teardown result. Later calls retain a teardown failure instead of treating the closed flag as success. Each helper gets 200 ms of TERM grace, followed by KILL if needed and reaping. Other fibers can run during that wait. The grace is per helper; it does not bound scheduling, filesystem or uninterruptible kernel work. No signal targets the daemon. tmux's [`exit-unattached`](/en/tmux/latest/catalog/options/exit-unattached/) and [`exit-empty`](/en/tmux/latest/catalog/options/exit-empty/) policies can end the daemon after its clients or sessions disappear.

## Parameters

- `arg1` (`t`)
