close method
Stop the runner.
If the runner has allocated resources, e.g., an isolate, it should be released. No further calls to run should be made after calling stop.
Implementation
@override
Future close() async {
return Future.sync(() async => _shutdownFuture ??= (await _runner).close());
}