This solution is fine....but don't forget their are 2 sides for a coin. What if the terrorists become even worse and start taking revenge because we detroyed their family? Already they claim that they are doing Jihad(terrorism) because the western world has destroyed their community. So now by destroying their family will they not increase terrorism?
But will the Gandhian way work in the current world?