public function unRegister()
    {
        if (isset(static::$handlers[$this->handlerId])) {
            if (!is_null($this->getKey())) {
                static::$keys[$this->getKey()]--;
            }
            unset(static::$handlers[$this->handlerId]);
            return true;
        }
        return false;
    }