fixes dangling global reference inside TAServer destructor