If you were disconnected/thrown out, the game will try to restore everything automatically on your reconnect/return (if that is possible).
If not - unfortunately, we won't be able to restore everything manually. To avoid such situations, please make sure that your connection is fast and stable, and your device works consistently without problems.