Move the closure of the `FileMonitor.NewLines` channel (which triggers closure of
the `LogFileInput` itself) into the `FileMonitor` so we're not relying on scheduler
internals to have things happen in the correct order.