Moved progress dialog creation before starting swing worker to prevent possible null pointer exceptions.