Added terminate channel on latestdata.

In order to properply shutdown the provider when it goes offline