in lib/src/guarantee_channel.dart [129:137]
void addError(error, [StackTrace? stackTrace]) {
if (_closed) throw StateError('Cannot add event after closing.');
if (_inAddStream) {
throw StateError('Cannot add event while adding stream.');
}
if (_disconnected) return;
_addError(error, stackTrace);
}