extensions/debug-auto-launch/src/extension.ts/destroyAttachServer
async function destroyAttachServer() {
	const instance = await server;
	if (instance) {
		await new Promise(r => instance.close(r));
	}
}