AdaptiveControl:
Added a (maybe) correct release of the thread
Added some temporary comments