fix net when socket close