discard exceptions of os.kill or process.kill