If your opponent stopped playing and it has been over 30 minutes, then they are probably not coming back. In this case, the best thing you could probably do is withdraw from the battle. Don't worry about being penalized. If you were the last one to move, then you can withdraw without fear.