Scheduler and Polling quits after some minutes, hours, or days

I’ve run into issues with polling, as well. See this tread, for example. Others have reported problems, as well.

As a work around, try to generate an event (sendEvent) inside your poll method, every time the method is called. It’s important to do that even though no state has changed. Does that make sense? Give it a shot and let us know if it helps.