Also know that this diode fried because the battery was connected in reverse polarity across the terminals, regardless if whether the supply was on or off. The diode sacrificed itself to protect numerous other components from the reverse voltage. Don't worry, it has happened to most of us at some time.