Add new lines to signal EOF when waiting for command to timeout.