"God works in mysterious ways"? See, this is why I don't believe in God. It basically comes down to this: either there's a being who does bad things except they're good and you just don't understand why even though they hurt you and cause suffering to your family and will kill you long before you would otherwise die, or there isn't such a being and it's just bad luck.
I'd rather chalk it up to chance, frankly. Who wants to believe in a God who makes people suffer for ineffable reasons? You might as well say "He makes you suffer because he can." Who's to say who's right? Certainly you can't. All you can do is believe that God is good.