Added some rudimentary error reporting to the USB IO routines for flashprog