Handle EPERM from os.kill(), bug #358211.