src/vs/base/common/errors.ts/ErrorHandler/addListener
class ErrorHandler:	addListener(listener: ErrorListenerCallback): ErrorListenerUnbind {
		this.listeners.push(listener);

		return () => {
			this._removeListener(listener);
		};
	}