# LibTmux.Control.close/2

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Elixir
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-elixir/blob/66b9b1c3f3f3186428abdfda2c76f5cf87446710/lib/libtmux/control.ex#L406
- **Page:** https://libtmux.org/en/elixir/latest/reference/libtmux-control-close-2/

```
close(control, options \\ [])
@spec close(t(), [call_option()]) ::
        :ok | {:error, LibTmux.Error.t()}
```

Requests closure and waits for proven retirement of the pinned epoch.

`timeout` defaults to 5000ms. The original budget includes validation and
retirement waiting. Closure still happens if the bounded metadata wait cannot
be admitted. Timeout, overload or lost ownership reports unknown certainty;
it never proves cleanup. `:ok` requires known native and actor retirement.

The connection supervisor and retained records remain available for explicit
reconnect and inspection. This does not stop the supervisor or roll back
sibling effects.

See the [worked example](advanced-execution.html).

## Parameters

- `control` (`t()`)
- `options` (`[call_option()]`)
