Delete ControlObjectThreadMain and ControlObjectThreadWidget.