What GameState event is called when exiting PIE

I have a thread to handle my AI targeting launching on a seperate thread. It shuts down on HandleMatchHasEnded, That doesn’t seem to get called on exiting PIE so my thread keeps running it’s targeting loop regardless of the map. Since the thread is running, The thread doesn’t launch a second thread when I try PIE again.

What event should I tie into for Exiting.