Detect when adb stops recording screen

Thanks @mykola-mokhnach that’s the case.
Now it’s worked