src/vs/workbench/contrib/terminal/browser/terminalGroup.ts/TerminalGroup/removeInstance
class TerminalGroup:	removeInstance(instance: ITerminalInstance) {
		this._removeInstance(instance);

		// Dispose instance event listeners
		const disposables = this._instanceDisposables.get(instance.instanceId);
		if (disposables) {
			dispose(disposables);
			this._instanceDisposables.delete(instance.instanceId);
		}
	}