On-line closed-loop wavefront correction for a multikilowatt dye laser system