catch scan errors