There are some religious groups --I'm thinking here of "prosperity" churches --that promote the message that nothing but good things will ever happen to the truly faithful. But these are definitely among the minority among religious traditions. Most religious people don't take it as an article of faith that bad things won't sometimes happen in their lives. In fact, we can see this reflected clearly in both Christian and Jewish religious scriptures.
For I envied the arrogant when I saw the prosperity of the wicked. They have no struggles; their bodies are healthy and strong...
This is what the wicked are like— always free of care, they go on amassing wealth. Surely in vain I have kept my heart pure and have washed my hands in innocence.[!] All day long I have been afflicted, and every morning brings new punishments.
Psalm 73: 3-7, 12-14
The incredible poetry of Job and Ecclesiastes also discuss the unmerited suffering of the righteous, so that's clearly not a new concept among the religious. (It's hard for me to not think of certain world leaders, in the midst of the current crisis, when I read the above!)
I assure you that there were many widows in Israel in Elijah's time, when the sky was shut for three and a half years and there was a severe famine throughout the land. Yet Elijah was not sent to any of them, but to a widow in Zarephath in the region of Sidon. And there were many in Israel with leprosy in the time of Elisha the prophet, yet not one of them was cleansed--only Naaman the Syrian.
This is directly from the words of Jesus. It expresses the idea that just because people CAN be miraculously healed doesn't mean that they WILL be. After Jesus told people this, the same people he grew up with tried to throw him off a cliff.
As far as what the faithful person should do in such a crisis this following passage is perhaps the best representation (at least from the Christian view):
Now there is in Jerusalem near the Sheep Gate a pool with five covered colonnades, which in Aramaica is called Bethesda. On these walkways lay a great number of the sick, the blind, the lame, and the paralyzed. One man there had been an invalid for thirty-eight years. When Jesus saw him lying there and realized that he had spent a long time in this condition, He asked him, “Do you want to get well?”
“Sir,” the invalid replied, “I have no one to help me into the pool when the water is stirred. While I am on my way, someone else goes in before me.”
Then Jesus told him, “Get up, pick up your mat, and walk.”
Here we have a person, waiting in vain for a miraculous healing. What Jesus demands from him is a) the genuine desire to get better and b) appropriate, pragmatic action on his part. The faith aspect here comes in the form of his willingness to follow Jesus' instructions, and not in him just lying there and waiting.
Finally, is it right to close churches, mosques and synagogues? Doesn't religious law mandate we keep them open?
One Sabbath Jesus was passing through the grainfields, and His disciples began to pick the heads of grain as they walked along. So the Pharisees said to Him, “Look, why are they doing what is unlawful on the Sabbath?”
Jesus replied, “Have you never read what David did when he and his companions were hungry and in need? During the high priesthood of Abiathar, he entered the house of God and ate the consecrated bread, which was lawful only for the priests. And he gave some to his companions as well.” Then Jesus declared, “The Sabbath was made for man, not man for the Sabbath."
These religious practices and rituals are made for people's benefit. They aren't there to follow blindly in the midst of all circumstances.