[FIX] web: Dialog: avoid triggering "closing" twice.