Fixed the execute-on-log feature: it was leaving dead processes behind