Logcat terminate code null

Hi All,

Appium: 1.12.1
device version: 5.1.1

Scenario:
When I fired any ADB command in between the script, I am getting Logcat Terminate code null. And this is only for 6.0 below devices as below devices don’t have uiautomator2 capability that means no system port in that case.

Appreciate if anyone can help me here.