code: def stop(self):
          
          for child_name, child in dict.items(self.children):
              # Catch child exceptions when stopping so we make sure to stop all children
              # that want to listen.
              try:
                  child.stop()
              except Exception:
                  self._logger.exception('Exception stopping child {!r}'
                                         .format(child_name))
docs: Stop all child resources