# libtmux._internal.control_mode.ControlMode.__exit__

- **Module:** libtmux._internal.control_mode.ControlMode
- **Package:** libtmux
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/libtmux/blob/9fdd083a8181a827889337b63cd4e6daea661a8c/src/libtmux/_internal/control_mode.py#L131
- **Page:** https://libtmux.org/en/py/latest/reference/libtmux-_internal-control_mode-controlmode-__exit__/

```
libtmux._internal.control_mode.ControlMode.__exit__(self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: types.TracebackType | None) -> None
```

Terminate control-mode client.
