finish restore command