US stocks close mostly with losses as tech continues to slide