Fix an issue that the dialog does not close at the end of a multiple-capture process.
Fix an issue that the dialog does not close at the end of a multiple-capture process.

danny0838/firefox-scrapbook,danny0838/firefox-scrapbook