All your data and tickets are saved online, so even if you loose connection to the game, your progress is saved and if you win, you will still receive your prize.