U.S. stocks close mixed as tech shares sink