If for 10 seconds no new entry is received, then all open files are flushed and closed. We do this to make sure, that we do not loose data, when we kill the process. There is still a risk of data loss if we kill the process while entries are received.