fixes dangling global reference inside TAServer destructor
Merge pull request #273 from MajBoredom/master

fixes dangling global reference inside TAServer destructor