Wider python version compatibility.
Do not fail on invalid kill().