wait for 500 ms, not 500 sec
if at fist we don't succeed (BUSY signal from sane), try, try try again. But then, die properly.
Merge branch 'bugfix_0_8' into development_0_9

Conflicts:
	src/scan.c