Ad hoc networks are decentralized systems that work without a fixed infrastructure and exhibit dynamic and stochastic behaviors. These conditions allow us to analyze them through properties like self-organization, adaptation and the use of the agent paradigm for managing and controlling the network. In this article, socially inspired computing is used to implement a register module for software agents through the concepts of institution and robustness; our goal is to build a software application that keeps working under the unexpected operating conditions of the ad hoc networks. IEEE FIPA protocols were used to design the agents and the communication channels. Three scenarios were developed, and failures in the systems were simulated. The results show the robustness of the module; it can recover itself from failures and allow the services to keep operating in acceptable conditions.