How to reinitialize Online Subsystem after reconnecting to the internet?

My problem is: I am unable to destroy a session or create a session after leaving my android game running on a device and the device goes to sleep for a while.

When I wake the device with the game still running, I am unable to destroy the session or create a new session. Is there a way to reinitialize the online subsystem or game instance so that multiplayer sessions works again without restarting the entire game?

I was able to solve this issue by creating a custom function in the game instance next to the Init() and Shutdown() functions.

I called it RestartSubsystems() and all it does is call:

SubsystemCollection.Deinitialize();
SubsystemCollection.Initialize(this);

This solved the issue for me! Wooo