Handle some error conditions.