Solved problem of keeping sockets.