They get to keep it and no, Ted and all the other candidates get to keep the money they have raised to run for president and NOBODY ever gives it back to the donors.
Legally so. Ted could make a unique class move and try doing it anyhow. Could be an interesting feature. I believe in hoping for the best.