Fix goroutine leak in logs following

Thanks @erikh for report.