Changed to use call instead of check_call as some pids may be killed
before we get them