Workaraound the old behaviour of kill_subprocess