You can choose to send your survey later after completing it, which will transfer it to an outbox--and it will do that automatically if your device doesn't have an internet connection.
I just checked how Survey123 handles disconnecting while sending data, and the app does hang until you shut it down. But the survey it failed to send goes to the outbox, and can be sent from there when you reopen the app.