updated scan library to support v2 beacons

You should definitely catch the error thrown and notify the user about the error.