code: public void stop()
     {
        if (mdr != null)
        {
           try
           {
              mdr.unregisterMetadata(md);
           }
           catch (Throwable t)
           {
              log.warn("Exception during unregistering deployment in the metadata repository", t);
           }
        }
     }
docs: Stop