Led with solenoid? Back-emf?
Sounds like you didn't observe the LED's absolute max reverse voltage of 5volt. Leo..