Fix error in TernUIPlugin shutdown
Merge pull request #112 from gamerson/master

Fix error in TernUIPlugin shutdown