src/vs/base/common/event.ts/EventMultiplexer/onLastListenerRemove
class EventMultiplexer:	private onLastListenerRemove(): void {
		this.hasListeners = false;
		this.events.forEach(e => this.unhook(e));
	}