Catch and print Errors as well as exceptions in CoreEventDispatcher

Change-Id: I8c41404aba26ad9c09b9b1bdc2e31b8350b1924c
diff --git a/core/net/src/main/java/org/onosproject/event/impl/CoreEventDispatcher.java b/core/net/src/main/java/org/onosproject/event/impl/CoreEventDispatcher.java
index 79ce74b..e63ecdf 100644
--- a/core/net/src/main/java/org/onosproject/event/impl/CoreEventDispatcher.java
+++ b/core/net/src/main/java/org/onosproject/event/impl/CoreEventDispatcher.java
@@ -124,7 +124,7 @@
                     process(event);
                 } catch (InterruptedException e) {
                     log.warn("Dispatch loop interrupted");
-                } catch (Exception e) {
+                } catch (Exception | Error e) {
                     log.warn("Error encountered while dispatching event:", e);
                 }
             }