Its a known issue and there is a bug reported for it. http://code.google.com/p/android/issues/detail?id=2887
A number of workarounds have been suggested. e.g.
Additionally, register a BroadcastReceiver to listen to network state changes and apply the workaround when the connectivity is lost. Network listener Android