Close Modules while tearing down
Some modules can emit a representsDefaultsChanged signal while they are being destroyed. Currently the module is destroyed by a destructor chain of the page widget. However this class has connected the signal to a slot accessing the page widget.