src/vs/workbench/contrib/terminal/browser/terminalInstance.ts/TerminalInstance/detachFromProcess
class TerminalInstance:	async detachFromProcess(): Promise<void> {
		// Detach the process and dispose the instance, without the instance dispose the terminal
		// won't go away
		await this._processManager.detachFromProcess();
		this.dispose();
	}