Stop rythm thread when the view is destroyed