# control.ControlMode.shutdown

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

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

Close the connection and report how it ended.

# Errors

Returns an error when the connection failed before it was closed.
