adding kill methods to spawned processes