Register ConnectionEvents class as an event handler.