game gets stuck at end game

I created a creative map. Whenever I manually end the game by pulling up the menu and clicking “end game”, the end game button sometimes is greyed out and shows “Please Wait…” instead and gets stuck. I’d have to exit to the lobby. Exiting to the creative hub won’t work. Sometimes I click “End Game” and it ends the game normally.

Help!