Handle Exit.vi executes Hide VI Panel.vi.
If the module's front panel is inserted into another front panel via a subpanel, the main panel will be hidden, which could cause the entire application to disappear.
The solution is to use the Remove VI method before the Stop Module API method.
An example illustrating the use of subpanels with DQMH would be interesting.
After consideration and discussion, we decided to decline this feature request.
The next release of DQMH will ship with dedicated requests for subpanel management added to the default templates. This might help with or actually solve the requirement described in this feature request.
We really appreciate your input, declining the idea does not mean it didn't help us fine-tune the scope of DQMH and reconsider our strategy. Please keep those ideas coming 😉