you just changed one of the consistent features of all os x applications, how to close applications and close windows/tabs of applications.
for some reason i always use the finger motion/press of thumb on left ⌘-key + index finger on q key to quit things and i've never experienced the ⌘q ⌘w issue.