Hello,
The reason for the application to continue running was that two SubVis were open. Closing the main Vi FP left those SubVis open and the program running hidden or something like that. When I closed manually the two FPs of the SubVis, the appl. stopped. The solution was to use the event structure, as shown by CC, to close the SubVis FPs and then let the main FP close (Discard? = False).
It's strange though that the program stays in memory for a few seconds, then it goes to "not responding" status and then disapears.
Thanks,
Marce