checks for posix kill too,
kill is needed to terminate child.