Use the new hideDialog method added in SwingCommon to prevent the progress dialog from sometimes hanging infinitely