Modify the Registration API to allow cancellation before the registration is terminated