when the component is destroyed stop the refresh task