Not possible to close dialogs with cmd+w
You can't close dialogs like preferences or Task Manager with cmd+w. Works with Chrome (with Task Manager).
@rchl Thanks for the report; it's a known/confirmed issue. I recently filed VB-32238 for the related case where Command-W doesn't close Settings/Preferences window.