Does a subscription ending today or yesterday get deactivated?  If it's today, then some of https://github.com/dimagi/commcare-hq/pull/2876 needs to be reverted.