@override Future<void> close() async { isOpen = false; final raw = _raw; if (raw != null) { _api.close(raw); } }