cleanup shut down of KSaneWidget
This MR cleans up the shutdown/closedevice procedure. Since the QImage is now allocated in the ScanThread, we can safely disconnect and delete the KSaneWidget immediately. The ScanThread is deleted once finished. I think I got all scenarios covered for the shutdown procedure, but please review carefully.