When calling disconnect, terminate the thread even if the socket has been closed.
When calling disconnect, terminate the thread even if the socket has been closed.

njh/ruby-mqtt,keshihoriuchi/ruby-mqtt,tierconnect/appcore2-ruby-mqtt