Fix Bug "[CLI] disconecting ios device when open-device-log-stream is active causes CLI to become unresponsive"