Program doesn't work after disconnect and connect power

The capacitor effects your power.
Are you starting it connected, then disconnecting it and expecting it to stay on?
Just trying to determine the sequence of events.