Pressing Cmd+W in the Preferences window does not close it when the active keyboard layout doesn't use the Latin alphabet (e.g. Russian). This does not match the way keyboard shortcuts usually work in macOS. When using a non-Latin layout, shortcuts should work as if the US layout were active.