# control.ControlMode.shutdown

- **Module:** control.ControlMode
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/control.rs#L606
- **Page:** https://libtmux.org/en/rs/latest/reference/control-controlmode-shutdown/

```
control.ControlMode.shutdown(self) -> Result<(), Error>
```

Close the connection and report how it ended.

# Errors

Returns a connection error that was not already delivered by
[`Self::next_event`].
