Handle cancel of dialog as error