Add the wait-eos command, to wait for an EOS from the pipeline, with a
timeout.