create a new kill_child_process method