stop adb server code example
Example: close adb server
open admin
C:\Users\'your username'\AppData\Local\Android\Sdk\platform-tools
adb kill-server and then adb start-server
open admin
C:\Users\'your username'\AppData\Local\Android\Sdk\platform-tools
adb kill-server and then adb start-server