Add a way to stop a Poller loop