# \[FAQ\] How to Automatically Close Launched Windows When a Web Group Closes

**URL:** <https://community.interop.io/t/faq-how-to-automatically-close-launched-windows-when-a-web-group-closes/545>\
**Category:** io.Connect Desktop\
**Tags:** FAQs\
**Created:** [April 3, 2026, 2:57pm UTC](https://community.interop.io/t/faq-how-to-automatically-close-launched-windows-when-a-web-group-closes/545 "2026-04-03T14:57:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![toni.petrov](https://yyz2.discourse-cdn.com/flex028/user_avatar/community.interop.io/toni.petrov/32/17_2.png) [@toni.petrov](https://community.interop.io/u/toni.petrov)\
**Post date:** [April 3, 2026, 2:57pm UTC](https://community.interop.io/t/faq-how-to-automatically-close-launched-windows-when-a-web-group-closes/545/1 "2026-04-03T14:57:28Z")

</div>

## The Problem

When you launch standalone windows from a Web Group using `application.start()`e.g. triggered by a button, those windows have their own independent lifecycle. If a user closes the Web Group, windows within that tab group are closed, but any independently launched windows remain open.

## The Solution

You can listen for the parent window’s close event and programmatically stop all instances of the child application:

```auto
w.onClose(() => {
    app?.instances.forEach((instance) => instance.stop());
});

```

Where `w` is the parent window and `app` is a reference to the child application object.

## Why Doesn’t `isChild` Work for Web Groups?

As stated in io.Connect Desktop documentation [`isChild` Window Setting](https://docs.interop.io/desktop/reference/javascript/windows/index.html#WindowSettings-isChild) `isChild` won’t work if the window is opened by a Workspaces App or a Web Group App. This is by design - Workspaces and Web Groups have their own lifecycle model, and it would not be correct for standalone windows to be bound to them in a parent-child relationship.
