I have suffered the shutdown while charging and have traced it to a battery charge indicator app. I would charge the battery at night and the next morning it wouldn't restart without pulling the battery. This occurred concurrently with installing a battery charge indicator app. I uninstalled the app and now the problem has disappeared. My unabated installation of apps has now stopped. I am now convinced that the app world is full of bugs and crap. I bet half the problems that folks have are due to unvetted apps being used. I am now trying to figure out how to properly screen them before I install them and inherit a fatal bug in the process.