Avoid unnecessary process spawns.

Only kill the child when ordered so.