How to trigger an event before the streaming level is unloaded

Apparently, EndPlay in the level BP is called, although at this point, some other object may have also already been unloaded.