Add kill for spawned processes

milestone5
Merge remote-tracking branch 'origin/djole_m5' into milestone/5