network: disconnect function implemented.