Fireworks malfunction causes show to end early in New Hampsh