The casinos keep a close log of the history of the games. If there is a technical problem with the provider or the internet connection is lost, the game will continue from the point at which the problem occurred. If this is not possible for any reason, you will of course get your bets back.