Bad things are part of the great Story that is unfolding, in which we all have parts to play. This is a Story about humankind as a whole always learning and growing and improving; each of us must try to do Good as much as we can, but because we are humans and not perfect, we must forgive ourselves and each other for the times when we screw up. Many of the "bad" things that happen to individual people have lessons to teach humankind, and that may be God's reason for allowing them to happen; we don't know the mind of God. We can see from some of the stories in the Bible that a bad thing that happened to a person long ago has had a good effect on millions of people who've heard the story.
My religion (Episcopal) teaches that there is more for us than earthly life, and in many ways this life is a separation from God. We need not fear death because after we die, we'll be with God and God will take good care of us. Therefore, dying isn't automatically a bad thing. What's bad about dying is (a) the fear and pain some people suffer in the process and (b) the sadness of people who miss the departed. A family friend died when my son was 3, and he was happy: "John went to his room in God's house. Jesus had it all ready for him! And now John is not sick and hurting any more." Then he was surprised to see the widow crying at the funeral and thought she must not know that John's soul was with God. I explained that she did know but was feeling sad for herself because her special partner that she loved so much was not with her anymore and her life felt so empty without him. We prayed for her to feel God's comfort and peace.
For myself, when I get all knotted up worrying about things in the world, I think of Ash Wednesday: We all are dust, and into dust we'll all return, and although the exact shapes of the dust seem so important, ultimately it doesn't matter very much. This helps me refocus on what's truly important, or at least to stop stressing over my house being so dusty--dude, it's ALL just dust.
