Send command+w,safari get quit?

Send command+w,safari get quit?
I I define Action of "2 Finger Swipe Down" as "Command + W". When I use it to control Safari, it occasionally causes the safari process to exit. I just want to close the label. Occasionally, I can't find the reason.

Unfortunately that's a bug in Safari.

You could use the predefined action "Trigger Menubar Menu Item" instead to workaround this.

Thanks,I get it.