Closes the stream.
void close();
Exceptions
Thrown on failure.
Remarks
Any asynchronous open or read operations will be cancelled, and will complete with the boost::asio::error::operation_aborted error.
boost::asio::error::operation_aborted