power down boards, but my application isn´t running

I´m starter in Rabbit, and i bought RCM4300, so i have a simple doubt, how can I compile to my program doesn´t stop in case of a power failure, the important is that I have to run my program without programming cable and after a power failure.

thanks in advance.