small fix
Handle other kinds of errors.