Fixed socket.close() bug in network.go.