GUI: Fix crash on exit related to split panes.