rem: KillThread (pSolarSysState->MenuState.flash_task);
add: Task_SetState (pSolarSysState->MenuState.flash_task, TASK_EXIT);
context: FreePlanet (void){	COUNT i;	SetSemaphore (GraphicsSem);	if (pSolarSysState->MenuState.flash_task)	{		KillThread (pSolarSysState->MenuState.flash_task);		pSolarSysState->MenuState.flash_task = 0;	}	StopMusic ();	for (i = 0; i < sizeof (pSolarSysState->PlanetSideFrame)			/ sizeof (pSolarSysState->PlanetSideFrame[0]); ++i)	{		DestroyDrawable (ReleaseDrawable (pSolarSysState->PlanetSideFrame[i]));		pSolarSysState->PlanetSideFrame[i] = 0;	}//    FreeLanderData ();	DestroyStringTable (ReleaseStringTable (pSolarSysState->XlatRef));	pSolarSysState->XlatRef = 0;	UnlockResourceData (pSolarSysState->hTopoData);	FreeResourceData (pSolarSysState->hTopoData);	pSolarSysState->hTopoData = 0;	DestroyDrawable (ReleaseDrawable (pSolarSysState->TopoFrame));	pSolarSysState->TopoFrame = 0;	TFB_ReleaseColorMap ();	DestroyColorMap (ReleaseColorMap (pSolarSysState->OrbitalCMap));	pSolarSysState->OrbitalCMap = 0;	DestroyContext (ReleaseContext (TaskContext));	TaskContext = 0;	DestroyStringTable (ReleaseStringTable (			pSolarSysState->SysInfo.PlanetInfo.DiscoveryString			));	pSolarSysState->SysInfo.PlanetInfo.DiscoveryString = 0;	DestroyFont (ReleaseFont (			pSolarSysState->SysInfo.PlanetInfo.LanderFont			));	pSolarSysState->SysInfo.PlanetInfo.LanderFont = 0;	ClearSemaphore (GraphicsSem);}