Under Windows os.kill terminates the process regardless of the signal value. Was this tested under Windows?