[fix] Correctly clean up xhr polling