fixed : unlock and terminate CanReceive loop thread when canclose is called.
//-------------------------------------------------------------------------------
//-------------------------------------------------------------------------------
//-------------------------------------------------------------------------------
#endif