[Bugfix] Fix worker killing on Python 3.6

  • Python 3.6 doesn’t have Process.kill, emulate using TerminateProcess / os.kill (#1319).

  • Fix logic that determines when to call Process.kill.