pub fn monitor(intv: Duration, shutdown: Arc<AtomicBool>) -> Result<()>
Stats printer loop for the monitor flag. Polls the stats server on the interval with plain text lines.