You can change the corresponding shortcut setting in File / Preferences / Input / Virtual Machine. Enter 'q' in the search bar and you will find the setting for 'Close' action. This will at least prevent opening the close dialog when you press Cmd-Q. However, the real fix to your problem is to change the host key from Cmd to something else.