Filebeat does not exit on EOF (input_type=stdin)

Filebeat is not designed to stop when the pipe closes. I'm thinking if we could do something here combined with the -once command line option. I actually never tried that.