I was talking to a group of theists and I asked them how they could justify the killing of thousands of innocent new born babies in Sodom and Gommorrah.
Their answer was God's laws are never to be broken. Their parents had sinned and the punishment was meted out to them and their descendants.
God gives us life and therefore has the right to take it away as he wishes. His justice is not to be compared with our sense of justice.
They quoted how he commanded the man who picked up sticks on God's sabbath to be stoned to death. It was an appropriate sentence because the man was deliberately defying God and there is no greater crime.