CMD+W closes Preferences window

Fix #6