Add network error checking.