Fix. socket_count does not decrement if, during a closing of socket there was a failure
Fix. Check param type in zmq.loop:add_socket.
Fix. Destroy zloop with fd of sockets.