Future<void> stop({bool force = false}) async { var completer = stopCompleter = Completer<void>(); serverSendPort.send(force); await completer.future; isolate.kill(); stopCompleter = null; }