kill method
Kills the process (with SIGKILL on POSIX operating systems), and returns a future that completes once it's dead.
If this is called after the process is already dead, it does nothing.
Implementation
Future<void> kill() async {
_process.kill(ProcessSignal.sigkill);
await exitCode;
}