pub fn write_terminate(buf: &mut Vec<u8>)
Write a Terminate message.
Sent to cleanly close the connection.