Invoke the cancel delegate only after the view completely dismissed.