title: Process not terminated at the end of the program
body: <p>After I close the main window of my program, the process is still running in the background.
  How can I check what is the cause for this weird problem?</p>
  
  <p>(I don't know which part of my program code is relevant) </p>