be more resilient to weird error types

Signed-off-by: Chris Granger <ibdknox@gmail.com>