how did the reign of terror come to an end

how did the reign of terror come to an end