def METHOD_NAME(pid):
    if os.name == 'nt':
        import ctypes
        handle = ctypes.windll.kernel32.OpenProcess(1, False, int(pid))
        process = ctypes.windll.kernel32.TerminateProcess(handle, 0)
        ctypes.windll.kernel32.CloseHandle(handle)
        if not process:
            print("~ Cannot kill the process with pid %s (ERROR %s)" % (pid, ctypes.windll.kernel32.GetLastError()))
            print("~ ")
            sys.exit(-1)
        print("~ Process with PID %s terminated" % pid)
    else:
        try:
            _terminate_unix_process_if_exists(int(pid))
        except OSError:
            print("~ Play was not running (Process id %s not found)" % pid)
            print("~")
            sys.exit(-1)