It has happened to me during searches, as well as during battles. I lose my entire army when this happens.
I spent crowns to rebuild army, and get caught again. It always happens against high resource, max wall players that are probably cheaters. One time I just froze and lost army without getting a replay. Another time I froze, and replay said I got like 2000 diamonds from the battle... (impossible)
It's extremely frustrating to spend crowns to rebuild army, go and get cheated out of my battle, and then when I re-open the program I see that I have been looted for 200K. That is EXACTLY the situation I wanted to avoid by spending crowns to speed up my army rebuild..