We may be joining the input_thread inside the vlm lock, and try to vlm lock inside the stop event handler.