Fixes #250 Add a reason field to the scan failure dictionary