Debugging closure of the ProgressDialog on MAC.

Debugging closure of the ProgressDialog on MAC.