You can register a declarative service implementing the IECD service and you will get the 'notify' method called each time an IEclipseContext is created/disposed. It's used for debugging IEC creation/disposal.