When closing a sub app with
- the close icon (X) or
- by using the "cancel"-button
a popup should show up to confirm the action.
For example:
The warning should only show IF there are unsaved changes. If it pops up every time, even if saved, the warning will be annoying.