How to properly shutdon FTaskGraphInterface? (makes editor crash after game shutdown)

Hi,
I’m trying to use tasks, but i’m consistantly getting ACCESS VIOLATION in tasks i launch, a few seconds after PIE shutdown.
How do you properly shutdown all these tasks?
I’ve tried to call stuff from GameInstance().OnDestroyed & PlayerController().OnDestroyed events, like :

FTaskGraphInterface::Get().ProcessThreadUntilIdle(ENamedThreads::AnyThread);
FTaskGraphInterface::Get().RequestReturn(ENamedThreads::AnyThread);
FTaskGraphInterface::Shutdown();

Nothing works.
Do i have to store all tasks i launch and use FTaskGraphInterface::Get().WaitUntilTasksComplete(taskarray)?

Is there a simpler way to do this? why isn’t it automatic by default? am i missing something?

Regards

precision: it crashes when i use the stop button in the pie editor. If i exit the game via exit() func, then it does crashes. However if i do that, editor’s process won’t stop when i close it. (have to kill it, like there is an infinite process going on)