implement disconnect function in network client
try to write a manual test for network client