Yes, I am well aware that you have to call wait for cleanup. However, in TheIDE, that is not entirely possible, because we need GUI to continue running.
Therefore we need a "start&forget" way of launching programs.
Somewhere I have found a recipe to solve the problem using singnals; the code is at ide/Host.cpp starting at line 156. But it does not seem to work well.