Apart from your being logged out, this exact thing just happened to me about two hours ago. I also have the HTC 10 and have been having frequent problems with it since it came out of the box. It's been shutting down and (sometimes) restarting at ~20% battery for awhile, but today it just shut...