Cleanup

Changed Thread management to clean up and hopefully remove
errors/asserts
Added error handling for popups.
Moved function from bt_extractClick to buildSelf (to mimic ScanTab)
Added errorMsg

To have a generic error message call.
Added support for corrupt windowsPID.pid files

So they clean up nice.
Error message handling.