jira/NMS-6966 Fix freezing Remote Poller UI when closing.

Jira: http://issues.opennms.org/browse/NMS-6966
Bamboo: http://bamboo.internal.opennms.com:8085/browse/OPENNMS-NMS116