return not 0 on exception
scan retry fix