This is especially important now that exit_behavior can keep empty panes around in unexpected circumstances.