Change Msg releasted connection type from BlockingQueuedConnection to DirectConnection
And add MsgEvent
Do not delete client side thread in doClose function(have many debug codes)
  Client site thread is always destroyed automatically when thread is terminated, so do not call delete thread in doClose method.
Have many debug codes