Remove tab when clicking its close button or pressing Ctrl-W.