When nginx worker is exiting, flush current buffer and do not buffer new logs. see #1