Sending (redundant) data via WIFI and GPRS

Hi friends,
I would like to send data to server using both WIFI and GSPR connection for a more robust system due to fair signals from a lot away sensors.
But when I lose the wifi signal, despite a good radio GPRS, i lose the LGPRSClient connection too. Seems they share the same socket instance that close when one loses connection. Does it make sense?
Any suggestions to keep both connections completely unrelated for them to reconnect when each signal strength allow?
Thank you in advance,
Marcelo

Hi, would you please share me you code, then I can find what happens. Thanks, you can send me a email: luweicong@seeed.cc