Completes with the child process's exit code when it terminates.
@override Future<int> get exitCode => _pty.exitCode;