Stop flushing logs. We might lose a few lines but my tests shows it's not that much. Worth the tradeoff.