Update Network.cpp

Sorry, i was wrong. Changed pthread_close to pthread_exit!