close queue event thread prevent race close swing util invok later runnabl run pbar close pbar 