Kill spawned processes if channel closes with problem

Make sure to kill spawned processes if the channel closes with a problem (ie: not cleanly).