Disposes of the worker, releasing any resources.
@override Future<void> dispose() async { _timer?.cancel(); await _flush(); // Try to send remaining logs _client.close(); }