Update jnxnetwork.c
Update jnxnetwork.c

Made quite a few changes to socket closing on error throughout the file, will need to wrap tests around
fixed blank lines breaking jnxkvp
fixed small print error in jnxfile
tweaked includes for network test
removed printf