Close socket when recoving from ZMQ failure