Refactor polling stop to use $timeout.cancel