Added a "Close" menu item for closing the current tab.

It's currently not disabled properly when there are no tabs.
Disable the Close menu item when no tabs are open.