U.S. equities closed out 2022in the red, and all three major indexes registered solid losses on a yearly basis.