NMS-6966: Fix freezing Remote Poller UI when closing.