Man, it kept happening to me at the beginning of my journey. I had to resync the blockchain many times 😮💨 Now, I sleep soundly with a UPS attached to it. In case of power short, it trigger a safe shutdown below the threshold of the current battery capacity.