[FIX] web: do not try to close a destroyed dialog. trigger "closing" signal on close by top-right "X" button