Changing the default keyboard shortcuts in iTerm2
Just tested this in Yosemite. If you re-map the keyboard shortcut for "Close" in the System > Keyboard > Shortcuts, then that changes the ⌘+W behavior.

See: