Does closing a Modal Dialog implicitly call destroy()?

If a window created with JSWindow.MODAL_DIALOG does closing that window with the close icon call destroy() or does it just hide() the window?