Update Networking.c

fix the error checking at the end of the files.