Microsoft says the terminations followed serious breaches amid claims that its software is used by Israeli army in Gaza.