If history is any indication, there's more pain ahead for tech.