cli: Handle player exit better on Windows.