Fully remove the pane instead of just detaching it.