Set canClose for existing tabs