Retrying the socket creation when the socket fails to be created