How to fix adb error: protocol fault (couldn't read status): Undefined error: 0

To resolve the issue protocol fault (couldn't read status): Undefined error: 0

Execute following commands killall adb
adb kill server
adb devices