Destroys the serial port.
~basic_serial_port();
This function destroys the serial port, cancelling any outstanding asynchronous wait operations associated with the serial port as if by calling cancel.
cancel