Now that I know how to detect when the power went down, I simply put the led output pin low and that solves the issue of the capacitor.

You really helped me Sayzer in a very timely fashion. Thanks again


Pablo