CC-2301 : destorying dialogs instead of just closing to free up resources.