Pro-grammatically free up solidworks network license

I have a standalone C# application which uses the Solidworks API. I need to free up the network license once the application terminates. Is there a way I can do this pro-grammatically?

SolidworksApi macros