Improved network error handling. (Greg A. Woods)