Remove polling thread