(Reuters) - U.S. stocks closed lower in an up-and-down session on Wednesday, dragged down by tech and energy shares, as investors adjusted to a more volatile market following wild swings of the past few sessions.