Fix dev/pane destroy and unregistering