MP1-4155: changed flushing of logging instance