Added additional error checking.

An error is now thrown when there are no USB adapters found. Also, invalid packets are dropped rather than throwing errors.