Wall Street ends a wild 2022 on a dismal note