We should remove the listeners in `onBeforeHide`.