The fact that a server error removes my energy and doesn't get me my rewards for winning a battle is VERY annoying and it happens way too often in the beta build for it to be a minor thing. Seems like the error checking should check for server errors and give 10 energy back since that's what you would've lost.
We think we have a solution to the server errors you are seeing. We are testing now and will roll out later this week.