Error: Trying to leave current state: 4

I keep getting Error: Trying to leave current state: 4 when the host gets disconnected from server.
I was expecting that the clients would get sent back to Main Menu or something similar but instead the clients get locked in a black screen with that message and no menus work so only option is to end game process.

Is this something that is wrong with the engine, or do I need to add a case to my own error handler that manually throws clients back to main menu when the host disconnects?

Best Regards,
Robert Carlsson