Add support for pausing/resuming processing
Stop a command on EOF