This should not only improve efficiency, but also help with unwanted side effects of the component still having listeners even when the config dialog is disposed.