Ignore RuntimeErrors for trying to access already deleted Qt objects on plugin destruction
Ensure that references to QWidgets are properly removed on plugin destruction

Otherwise QWidgets tend to leak as Python is not able to collect their
PyQt object.