If the server is not up when the device tries to connect, it doesn't continue to attempt reconnection. The script just ends.