If you use a keyboard, how about this?
Ctrl + w closes the tab.
Ctrl + shift + w closes the browser.