flush log for jdownloader fix wait for links