Stop subscription when template gets destroyed

(can also be applied to other subscriptions following this pattern)