Low-level support for events attaching/detaching