Celebrations from California to New York ended in tragedy, disrupted by gun violence or fireworks explosions gone wrong.