add exc to close dialog