added try/catch around scan stuff.  fixes #90.