Command runs the command in its own session without a terminal, so nothing
it starts can prompt on the TUI's terminal. Canceling kills the whole
session, including child processes (on Windows, only the command itself).
Wait stops waiting for leftover output holders after one second.