Would be nice when closing a portfolio with hidden investments that a warning message is displayed informing one of this fact.
I've spent a-bit of time correcting my errors when I'm restructuring hierarchy and close portfolios with hidden (zero balance) investments.
I know, one should un-check Hidden Investments/Portfolios before closing portfolios, but one has a tendency to forget when they are hidden.