close method
Lets go of what it holds: on the process's terminal, stdin, once a
readLine listened to it, so that the process can end. Nothing is
read after it. Cli.close calls it; nothing by default.
Implementation
@override
Future<void> close() async => _closed = true;