adb core: catch the socket error on shutdown

A socket error is thrown if you unplug the device, then try to close the connection. skip shutdown if this occurs and go straight to closing the socket