Closes the link, telling the far end code and reason.
code
reason
@override Future<void> close([int? code, String? reason]) async { _closed = true; await _channel.sink.close(code, reason); }