Added wait until Progress information dialog is closed. Fixes #654.