My Pic did die in less than 2 day.

I only have 5VDC available to the board. I added a diode in between the 5V rail and the PIC. I put a 220uf cap across catode of the diode feeding the pic with 4.3V. I then monitor 5V rail for loss of power. When this pin goes low i write the necessary info to the EEPROM. This works fine except for the PWM out will only go up the the 4.3V now instead of the original 5V. I can put a shotkey diode in that should give me another .3V or .4V. Does anyone have a better option to monnitor loss of power and save a vairable?

Thanks,

Terry