Added events to Core so that subscriptions can be removed when a module is stopped