public static function deactive(\Closure $deactive)
    {
        $mocaBonita = self::getInstance();

        register_deactivation_hook(MbPath::pBaseN(), function () use ($deactive, $mocaBonita) {
            try {
                MbMigration::enablePdoConnection();
                call_user_func_array($deactive, [$mocaBonita]);
            } catch (\Exception $e) {
                MbException::registerError($e);
                wp_die($e->getMessage());
            }
        });
    }