SD-261 flush buffered log messages before returning from close() so that callers can block application shutdown on until all their log messages have been written