Delegate for dismissal.