[Ovmsdev] Improve shutdown of poller