Fixed some hanging threads related to ProgressIndicator.java