Raspi's have a tendency to crash and corrupt storage on SD cards etc if the power isnt sufficient. Have a read below: