def METHOD_NAME(self) -> None:
    """ Stops all enabled rpc modules """
    logger.info('Cleaning up rpc modules ...')
    while self.registered_modules:
        mod = self.registered_modules.pop()
        logger.info('Cleaning up rpc.%s ...', mod.name)
        mod.METHOD_NAME()
        del mod