Which president thought he would be the last of the US?

James Buchanan may have had this thought. He saw the union crack up as he left office and he did not do anything about it.