I have few modal forms in my application. For Some Reasons(which are necessary for my application), I have used
<form>.show instead of
But the problem is that in such a case, if the user opens such form and forgget to close them and closes the main application these forms remain there unclosed.
What can be the solution that as soon I closes the main application (all forms opened including Modal opened with <.show> also closes).