All our recommended casinos have software to deal with these unexpected situations. The game will either be stopped, and your bet returned, or the bet continues and you receive the outcome when you reconnect.