Try using destroy dialog..