Fix for not ending subsciption on sensor value window close