# tmux_control:close/1

- **Package:** libtmux_erlang
- **Language:** Erlang
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-erlang/blob/d1b6308440cf9eb8f6647e7ae434bce60e849368/apps/libtmux_erlang/src/tmux_control.erl#L89
- **Page:** https://libtmux.org/en/erlang/latest/reference/tmux_control-close-1/

```
close(Control)
-spec close(t()) -> ok | {error, map()}.
```

Retire this control client and its helper without issuing session or daemon destruction commands. Native lifetime policies and detachment hooks may still change state; cleanup does not reverse their effects. Returns ok only after actual retirement. A finite cleanup failure leaves a supervised owner for retry and observation. Successful close is idempotent during the 60-second handle retention period.

## Parameters

- `Control` (`t()`)

## Guides

Pages that discuss `close/1`.

- [Control connections](/en/erlang/latest/topics/control/)
