[terminal] actually autoclose terminal tab