in usb_monitor_pkg/usb_monitor_pkg/usb_monitor_node.py [0:0]
def __exit__(self, ExcType, ExcValue, Traceback):
"""Called when the object is destroyed.
"""
self.stop()
self.stop_queue.set()
self.queue.put(None)
self.thread.join()