How to abort out of a sequence in a BT?

I’m not sure if there is a more correct way to do it but I just call the following:

auto controller = Cast<AAIController>(Cast<ACharacter>(GetOwner())->GetController());
	if (controller) {
		auto bbc = controller->GetBlackboardComponent();
		if (bbc) {
			bbc->GetBrainComponent()->RestartLogic();
		}
	}