code: public void uninit() {
          log.debug("Un-init scope");
          for (IBasicScope child : children.keySet()) {
              if (child instanceof Scope) {
                  ((Scope) child).uninit();
              }
          }
          stop();
          setEnabled(false);
          if (hasParent()) {
              if (parent.hasChildScope(name)) {
                  parent.removeChildScope(this);
              }
          }
      }
docs: Uninitialize scope and unregister from parent.