Cleaning up the network client