dispose task dialog in non-awt thread apparently caused problems