Fix the updateThread's stop
Merge branch 'application-base' of https://github.com/stevenremot/tlsd-prototype into application-base