I tried killing a single browser window with wmctrl -i -c <window id> but it closed all browser windows.
ID=`xdotool search --name "Web"` xdotool windowactivate --sync $ID key --clearmodifiers --delay 100 alt+F4