void SendDetach(Error error) { Detach detach = new Detach() { Handle = this.handle, Error = error, Closed = true }; this.session.SendCommand(detach); } }