src/vs/base/parts/ipc/node/ipc.net.ts/NodeSocket/onEnd
class NodeSocket:	public onEnd(listener: () => void): IDisposable {
		const adapter = () => {
			listener();
		};
		this.socket.on('end', adapter);
		return {
			dispose: () => this.socket.off('end', adapter)
		};
	}