adding generic error handling for when req fails with things like socket hang ups.