User Activity

while using flash memory, in case of power cycle the memory gets corrupted.is there any techinique to prevent it or recover it into normal working.