For some reason whenever I close a window, as soon as the animation begins a red error indicator pops up in the bottom right and the game goes back to the main menu. However, this only seems to happen on my custom sandbox save and nowhere else. The only things I changed were the XP multiplier, item rarities and some zombie and environment settings.