Cancel the onSubThreadEnded callback,because _ws may be deleted in the onClose callback.
Merge branch 'WsThreadHelper' into develop_dirty