Closing tabs is mostly working