Handle short path failure for Windows.

On Windows, the short path of the plugin is used when flash or burning bootloader.
If the function that generates the short path fails, return an error code to Javascript.