Stop subscription when template gets destroyed