dialog: remove dialog from profile as soon as gets to terminated state