1. Create a custom event name, which the listener is attached to.
  2. Listen to a DOM event, and have the listener fire the CE.
  3. When the CE handlers are all removed, remove the DOM event handlers.
  4. If the DOM event handlers are removed, remove the CE handler.