update closing terminal/tabs