Protecting and recovering Untrusted or Lost license