Flush loggers on finally clause

Flush loggers on finally clause