M-Files Custom Application License

Hello,

I have implemented a licensing structure for one of our applications(it properly reports an invalid and valid license). I am just wondering if there is a preferred way to prevent the application from running if the license is invalid. 

I have setup my license according to the following documentation:
https://developer.m-files.com/Frameworks/Vault-Application-Framework/Licensing/#creating-a-licensed-vault-application-framework-application

Is there a proper way to prevent the application from working or is this just something where I set a boolean value and implement a check into my code to prevent things from happening?

Thanks,

Mitch