Flush log filestreams after every message to avoid losing buffered info on termination.