Attempt to reduce harmless warnings during shutdown

Change-Id: I431c9d5944c1655c45c4ece8b39da4fdb108c6f4
diff --git a/providers/openflow/group/src/main/java/org/onosproject/provider/of/group/impl/GroupStatsCollector.java b/providers/openflow/group/src/main/java/org/onosproject/provider/of/group/impl/GroupStatsCollector.java
index 0f9fa56..146ccc3 100644
--- a/providers/openflow/group/src/main/java/org/onosproject/provider/of/group/impl/GroupStatsCollector.java
+++ b/providers/openflow/group/src/main/java/org/onosproject/provider/of/group/impl/GroupStatsCollector.java
@@ -77,6 +77,9 @@
         if (sw.getRole() != RoleState.MASTER) {
             return;
         }
+        if (!sw.isConnected()) {
+            return;
+        }
         Long statsXid = OpenFlowGroupProvider.getXidAndAdd(2);
         OFGroupStatsRequest statsRequest = sw.factory().buildGroupStatsRequest()
                 .setGroup(OFGroup.ALL)