Fix when the subscription_terminated callback is called for subscription handlers.