Reset terminal attributes after exit