Reuse applet, destroy dialog on mathflow unload, MMCMS-187