handleError method
Implementation
void handleError(Object e, {bool keepOpen = false, StackTrace? st}) {
if (_completer?.isCompleted == true) {
_log.warning('Ignoring error because no response', e, st);
} else {
_completer?.completeError(e, st);
}
if (!keepOpen) {
close();
}
}