Keep file handle open, avoiding re-opening of logfile on every line
Keep elasticsearch connection open