Added the changes requested to force appender flushing (currently a bug in Log4j2)