No, since a timer is not called from within the script you have no way of knowing whether the dialog is still open.