close method
Implementation
Future<void> close() async {
if (notificationPort == null) return;
await _notificationSubscription?.cancel();
_notificationSubscription = null;
notificationPort?.close();
notificationPort = null;
_decoder.clear();
await closePort();
_logger.config('closed');
}