A string of volatile sessions for US stocks extended into the last day of 2024, marking an ominous close to an otherwise stellar year for investors.